chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
40d5467
)
dot/shell-rc: Only deploy the trivial prompt if not directly under Emacs.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 23 Mar 2018 10:27:13 +0000
(10:27 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 23 Mar 2018 10:31:46 +0000
(10:31 +0000)
This lets TRAMP keep working -- which was the point of this hack --
without defeating complex prompts in Emacs `M-x shell' and similar.
dot/shell-rc
patch
|
blob
|
blame
|
history
diff --git
a/dot/shell-rc
b/dot/shell-rc
index 4538bc393f8d3afa737bcd1679d41f70ee6dbb6f..4ab03557bc5c1ca8c8079f7505b35325c81ddad2 100644
(file)
--- a/
dot/shell-rc
+++ b/
dot/shell-rc
@@
-74,8
+74,8
@@
__mdw_set_prompt_pieces () {
}
__mdw_set_prompt () {
- case "$TERM" in
- dumb)
+ case "$TERM
:$INSIDE_EMACS
" in
+ dumb
:
)
case $(id -u) in 0) PS1='# ' ;; *) PS1='$ ' ;; esac
PS2='> '
;;