Fix tramp + zsh

This commit is contained in:
David Morgan 2022-12-02 06:55:24 +00:00
parent 79cdd27433
commit a5035cbb1d
Signed by: djm
GPG Key ID: C171251002C200F2
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@
(add-to-list 'tramp-remote-path "/run/current-system/sw/bin")
:custom
(tramp-default-method "ssh")
(tramp-terminal-type "tramp")
(vc-ignore-dir-regexp
(format "\\(%s\\)\\|\\(%s\\)"
vc-ignore-dir-regexp

View File

@ -82,6 +82,9 @@
gloga = "git log --oneline --decorate --graph --all";
};
initExtraFirst = ''
[[ $TERM == "tramp" ]] && unsetopt zle && PS1='$ ' && return
'';
initExtra = ''
# Based on prezto tmux plugin
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && (-z "$SSH_TTY" || -n "$TMUX_AUTO_ATTACH") ]]; then