aboutsummaryrefslogtreecommitdiff
path: root/base/.zsh/prompt.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'base/.zsh/prompt.zsh')
-rw-r--r--base/.zsh/prompt.zsh8
1 files changed, 6 insertions, 2 deletions
diff --git a/base/.zsh/prompt.zsh b/base/.zsh/prompt.zsh
index 2789a38..2e4dca9 100644
--- a/base/.zsh/prompt.zsh
+++ b/base/.zsh/prompt.zsh
@@ -1,2 +1,6 @@
-autoload -U promptinit && promptinit
-prompt pure
+if [[ `tty | sed -ne "\_^/dev/tty[0-9]*_p"` ]]; then
+ PROMPT='%F{0}%B[ %F{6}%b%M %B%1~ %F{0}]%(!.#.$)%f%b '
+else
+ autoload -U promptinit && promptinit
+ prompt pure
+fi