diff options
author | David Morgan <djm_uk@protonmail.com> | 2022-12-02 06:55:24 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2022-12-02 06:55:24 +0000 |
commit | a5035cbb1dafa255afcd0896af4ee320f6ddf9b3 (patch) | |
tree | cf617d1568aad863839233839eb9210ea5a4a1d3 /nix-conf | |
parent | 79cdd274338b0224b95cd9b09a36d50388b61d19 (diff) | |
download | dotfiles-a5035cbb1dafa255afcd0896af4ee320f6ddf9b3.tar.gz |
Fix tramp + zsh
Diffstat (limited to 'nix-conf')
-rw-r--r-- | nix-conf/home/includes/zsh.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix index 6cb7f1e..f9a3896 100644 --- a/nix-conf/home/includes/zsh.nix +++ b/nix-conf/home/includes/zsh.nix @@ -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 |