aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2014-03-24 09:09:42 +0100
committerMichael Albinus2014-03-24 09:09:42 +0100
commit39e98ed4ff2a2f10b029a2280084495b0294bca9 (patch)
tree4ac0846e4870e67d6c42c60b6a4c3aff7a6c4527
parent33f0ba7e4999819a6cb2d911952c0e6cd28ead86 (diff)
downloademacs-39e98ed4ff2a2f10b029a2280084495b0294bca9.tar.gz
emacs-39e98ed4ff2a2f10b029a2280084495b0294bca9.zip
* tramp.texi (Frequently Asked Questions): Add fish shell settings.
-rw-r--r--doc/misc/ChangeLog4
-rw-r--r--doc/misc/tramp.texi21
2 files changed, 21 insertions, 4 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 34021fd3d9b..9f01da8bc21 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,7 @@
12014-03-24 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.texi (Frequently Asked Questions): Add fish shell settings.
4
12014-03-21 Glenn Morris <rgm@gnu.org> 52014-03-21 Glenn Morris <rgm@gnu.org>
2 6
3 * ede.texi (ede-linux): 7 * ede.texi (ede-linux):
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 6dd5d2a88d8..c0a6156a4cf 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -3053,15 +3053,28 @@ setting the cursor at the top of the buffer, and applying the expression
3053If it fails, or the cursor is not moved at the end of the buffer, your 3053If it fails, or the cursor is not moved at the end of the buffer, your
3054prompt is not recognized correctly. 3054prompt is not recognized correctly.
3055 3055
3056A special problem is the zsh, which uses left-hand side and right-hand 3056A special problem is the zsh shell, which uses left-hand side and
3057side prompts in parallel. Therefore, it is necessary to disable the 3057right-hand side prompts in parallel. Therefore, it is necessary to
3058zsh line editor on the remote host. You shall add to @file{~/.zshrc} 3058disable the zsh line editor on the remote host. You shall add to
3059the following command: 3059@file{~/.zshrc} the following command:
3060 3060
3061@example 3061@example
3062[ $TERM = "dumb" ] && unsetopt zle && PS1='$ ' 3062[ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
3063@end example 3063@end example
3064 3064
3065Similar fancy prompt settings are known from the fish shell. Here you
3066must add in @file{~/.config/fish/config.fish}:
3067
3068@example
3069function fish_prompt
3070 if test $TERM = "dumb"
3071 echo "\$ "
3072 else
3073 @dots{}
3074 end
3075end
3076@end example
3077
3065Furthermore it has been reported, that @value{tramp} (like sshfs, 3078Furthermore it has been reported, that @value{tramp} (like sshfs,
3066incidentally) doesn't work with WinSSHD due to strange prompt settings. 3079incidentally) doesn't work with WinSSHD due to strange prompt settings.
3067 3080