diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | zsh/.zshrc | 17 |
2 files changed, 15 insertions, 3 deletions
@@ -1,5 +1,6 @@ zsh/hist zsh/zcompdump +zsh/.zsh_theme zoomus.conf zirless/ zec-qt-wallet-org/ @@ -36,9 +36,18 @@ if [ "$TERM" = "st-256color" ] || [ "$TERM" = "xterm-256color" ]; then zle -N zle-line-finish fi -which pacman >/dev/null && COLOR1="014" -which apt >/dev/null && COLOR1="010" -which syspatch >/dev/null && COLOR1="009" +unset COLOR1 +ZSHTHEMERC="${ZDOTDIR:-$HOME}/.zsh_theme" +[ -f "$ZSHTHEMERC" ] && . "$ZSHTHEMERC" + +if [ -z "$COLOR1" ]; then + case "$(whoami)" in + zachir) COLOR1="014" ;; + git) COLOR1="013" ;; + subsonic) COLOR1="012" ;; + *) COLOR1="015" ;; + esac +fi MYPROMPT='%B%S%F{'"$COLOR1"'}[%n@%m]:%f%s%F{015}%~%f%S%F{'"$COLOR1"'}%#%f%s%b ' function zle-line-init zle-keymap-select { @@ -48,6 +57,8 @@ function zle-line-init zle-keymap-select { zle reset-prompt } +unset COLOR1 + zle -N zle-line-init zle -N zle-keymap-select export KEYTIMEOUT=1 |