From f2391b8f1552965b81ec1f39d351f810dd591858 Mon Sep 17 00:00:00 2001 From: Adam Hovorka Date: Mon, 7 Aug 2017 13:56:38 -0600 Subject: Add fallback prompt for Linux vconsole --- base/.zsh/prompt.zsh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'base') 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 -- cgit v1.2.3-70-g09d2