about summary refs log tree commit diff
path: root/home/zsh/prompt.zsh
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-15 19:55:50 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-15 19:55:50 -0700
commit7b64fa1b3f5020f833bc44081dcc64b04015284d (patch)
tree95d9aed39cb2926bc5f150deabf35896f61c235e /home/zsh/prompt.zsh
parentterminal: once again, fix the colors (diff)
downloadworld-7b64fa1b3f5020f833bc44081dcc64b04015284d.tar.gz
zsh: some cleanup
Diffstat (limited to 'home/zsh/prompt.zsh')
-rw-r--r--home/zsh/prompt.zsh12
1 files changed, 11 insertions, 1 deletions
diff --git a/home/zsh/prompt.zsh b/home/zsh/prompt.zsh
index c1277e9..1c21d4b 100644
--- a/home/zsh/prompt.zsh
+++ b/home/zsh/prompt.zsh
@@ -1 +1,11 @@
-PROMPT="%K{cyan}%F{black}%m%k%f %~ %% "
+setopt prompt_subst
+
+PROMPT='%K{cyan}%F{black}%m%k%f %~ %% '
+
+# For tramp (emacs).
+if [ "$TERM" = "dumb" ]; then
+  unset PROMPT
+  PS1='$ '
+  unsetopt zle
+fi
+