about summary refs log tree commit diff
path: root/home/shell/zsh/prompt.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'home/shell/zsh/prompt.zsh')
-rw-r--r--home/shell/zsh/prompt.zsh11
1 files changed, 11 insertions, 0 deletions
diff --git a/home/shell/zsh/prompt.zsh b/home/shell/zsh/prompt.zsh
new file mode 100644
index 0000000..1c21d4b
--- /dev/null
+++ b/home/shell/zsh/prompt.zsh
@@ -0,0 +1,11 @@
+setopt prompt_subst
+
+PROMPT='%K{cyan}%F{black}%m%k%f %~ %% '
+
+# For tramp (emacs).
+if [ "$TERM" = "dumb" ]; then
+  unset PROMPT
+  PS1='$ '
+  unsetopt zle
+fi
+