aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2017-08-07 13:56:38 -0600
committerAdam Hovorka <[email protected]>2017-08-07 13:56:38 -0600
commitf2391b8f1552965b81ec1f39d351f810dd591858 (patch)
tree2d123a94584f9b27f2760a12c6389be3179993e7 /base
parentac5294ae7aaa8668f0a74e32c1786a25adbbb80f (diff)
Add fallback prompt for Linux vconsole
Diffstat (limited to 'base')
-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