summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2013-09-22 19:47:14 +0100
committerAlan Pearce2013-09-22 19:47:14 +0100
commitc087c244eec20ae4b76430b5b74fa7c6f32f4cd3 (patch)
tree6c94e0285040d829bd7c153b5d52a1fa689b8de2
parente25275c1cfc454671597c6f71901ca2e57758e99 (diff)
downloadnixfiles-c087c244eec20ae4b76430b5b74fa7c6f32f4cd3.tar.lz
nixfiles-c087c244eec20ae4b76430b5b74fa7c6f32f4cd3.tar.zst
nixfiles-c087c244eec20ae4b76430b5b74fa7c6f32f4cd3.zip
zsh: Fix prompt issues with TRAMP
-rwxr-xr-xzsh/zshrc10
1 files changed, 6 insertions, 4 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index ecfec59b..b2005cbc 100755
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -170,10 +170,12 @@ zstyle ':vcs_info:*' enable git hg
 zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' '*?.old' '*?.pro'
 
 ## Prompt
-autoload -U promptinit
-promptinit
-
-prompt pure
+if [[ $TERM != 'dumb' ]]
+then
+	autoload -U promptinit
+	promptinit
+	prompt pure
+fi
 
 # Options