diff options
| author | Michael Albinus | 2014-03-24 09:09:42 +0100 |
|---|---|---|
| committer | Michael Albinus | 2014-03-24 09:09:42 +0100 |
| commit | 39e98ed4ff2a2f10b029a2280084495b0294bca9 (patch) | |
| tree | 4ac0846e4870e67d6c42c60b6a4c3aff7a6c4527 | |
| parent | 33f0ba7e4999819a6cb2d911952c0e6cd28ead86 (diff) | |
| download | emacs-39e98ed4ff2a2f10b029a2280084495b0294bca9.tar.gz emacs-39e98ed4ff2a2f10b029a2280084495b0294bca9.zip | |
* tramp.texi (Frequently Asked Questions): Add fish shell settings.
| -rw-r--r-- | doc/misc/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 21 |
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 @@ | |||
| 1 | 2014-03-24 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * tramp.texi (Frequently Asked Questions): Add fish shell settings. | ||
| 4 | |||
| 1 | 2014-03-21 Glenn Morris <rgm@gnu.org> | 5 | 2014-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 | |||
| 3053 | If it fails, or the cursor is not moved at the end of the buffer, your | 3053 | If it fails, or the cursor is not moved at the end of the buffer, your |
| 3054 | prompt is not recognized correctly. | 3054 | prompt is not recognized correctly. |
| 3055 | 3055 | ||
| 3056 | A special problem is the zsh, which uses left-hand side and right-hand | 3056 | A special problem is the zsh shell, which uses left-hand side and |
| 3057 | side prompts in parallel. Therefore, it is necessary to disable the | 3057 | right-hand side prompts in parallel. Therefore, it is necessary to |
| 3058 | zsh line editor on the remote host. You shall add to @file{~/.zshrc} | 3058 | disable the zsh line editor on the remote host. You shall add to |
| 3059 | the 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 | ||
| 3065 | Similar fancy prompt settings are known from the fish shell. Here you | ||
| 3066 | must add in @file{~/.config/fish/config.fish}: | ||
| 3067 | |||
| 3068 | @example | ||
| 3069 | function fish_prompt | ||
| 3070 | if test $TERM = "dumb" | ||
| 3071 | echo "\$ " | ||
| 3072 | else | ||
| 3073 | @dots{} | ||
| 3074 | end | ||
| 3075 | end | ||
| 3076 | @end example | ||
| 3077 | |||
| 3065 | Furthermore it has been reported, that @value{tramp} (like sshfs, | 3078 | Furthermore it has been reported, that @value{tramp} (like sshfs, |
| 3066 | incidentally) doesn't work with WinSSHD due to strange prompt settings. | 3079 | incidentally) doesn't work with WinSSHD due to strange prompt settings. |
| 3067 | 3080 | ||