ID <[email protected]> writes:
> Hello folks,
Hi,
> I've been using TRAMP for quite a while, and everything was
> fine, until I switch my main shell to Fish (it was Bash previously).
>
> After entering:
>
> /ssh:the-host:<TAB>
>
> in Emacs find-file, TRAMP prompts for the password, and I enter the
> password accordingly, then TRAMP just hangs indifinitely.
>
> I have dumb terminal check in my fish config file like so:
>
> if test "$TERM" = "dumb"
> function fish_prompt
> printf '$ '
> end
>
> function fish_right_prompt; end
> function fish_greeting; end
> function fish_title; end
> else
> ...fancy prompts...
> end
>
> and according to the manual, setting these functions should be enough for
> TRAMP
> to work, am I missing something?
I have no experience with the fish shell, but the Tramp manual
recommends it slightly different:
--8<---------------cut here---------------start------------->8---
When using fish shell on remote hosts, disable fancy
formatting by adding the following to
‘~/.config/fish/config.fish’:
function fish_prompt
if test $TERM = "dumb"
echo "\$ "
else
...
end
end
--8<---------------cut here---------------end--------------->8---
Could you try this?
If it doesn't work, please start a new Emacs session as
--8<---------------cut here---------------start------------->8---
# emacs -Q -l tramp --eval '(setq tramp-verbose 10)'
--8<---------------cut here---------------end--------------->8---
Rerun your test, and when it fails, send the corresponding debug buffer
here.
> Any help is appreciated, thanks in advance!
Best regards, Michael.