diff options
author | Adam Hovorka <[email protected]> | 2017-08-07 13:56:38 -0600 |
---|---|---|
committer | Adam Hovorka <[email protected]> | 2017-08-07 13:56:38 -0600 |
commit | f2391b8f1552965b81ec1f39d351f810dd591858 (patch) | |
tree | 2d123a94584f9b27f2760a12c6389be3179993e7 /base/.zsh/prompt.zsh | |
parent | ac5294ae7aaa8668f0a74e32c1786a25adbbb80f (diff) |
Add fallback prompt for Linux vconsole
Diffstat (limited to 'base/.zsh/prompt.zsh')
-rw-r--r-- | base/.zsh/prompt.zsh | 8 |
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 |