Fix tramp + zsh
This commit is contained in:
parent
79cdd27433
commit
a5035cbb1d
|
@ -8,6 +8,7 @@
|
||||||
(add-to-list 'tramp-remote-path "/run/current-system/sw/bin")
|
(add-to-list 'tramp-remote-path "/run/current-system/sw/bin")
|
||||||
:custom
|
:custom
|
||||||
(tramp-default-method "ssh")
|
(tramp-default-method "ssh")
|
||||||
|
(tramp-terminal-type "tramp")
|
||||||
(vc-ignore-dir-regexp
|
(vc-ignore-dir-regexp
|
||||||
(format "\\(%s\\)\\|\\(%s\\)"
|
(format "\\(%s\\)\\|\\(%s\\)"
|
||||||
vc-ignore-dir-regexp
|
vc-ignore-dir-regexp
|
||||||
|
|
|
@ -82,6 +82,9 @@
|
||||||
gloga = "git log --oneline --decorate --graph --all";
|
gloga = "git log --oneline --decorate --graph --all";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
initExtraFirst = ''
|
||||||
|
[[ $TERM == "tramp" ]] && unsetopt zle && PS1='$ ' && return
|
||||||
|
'';
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
# Based on prezto tmux plugin
|
# Based on prezto tmux plugin
|
||||||
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && (-z "$SSH_TTY" || -n "$TMUX_AUTO_ATTACH") ]]; then
|
if [[ -z "$TMUX" && -z "$EMACS" && -z "$VIM" && -z "$INSIDE_EMACS" && (-z "$SSH_TTY" || -n "$TMUX_AUTO_ATTACH") ]]; then
|
||||||
|
|
Loading…
Reference in New Issue