aboutsummaryrefslogtreecommitdiff
path: root/zsh/.zshrc
diff options
context:
space:
mode:
authorxero <x@xero.nu>2015-01-01 21:17:07 -0500
committerxero <x@xero.nu>2015-01-01 21:17:07 -0500
commite6f7191cc1a770748805f78766822e603aa18738 (patch)
treeb9e180cc9c31d56ac292283257e2d6e9d576863f /zsh/.zshrc
parent3328c60768c1fa2161bc0b683692e3a50909a1c3 (diff)
downloaddotfiles_ascii-e6f7191cc1a770748805f78766822e603aa18738.tar.xz
dotfiles_ascii-e6f7191cc1a770748805f78766822e603aa18738.zip
combine zsh user and root themes and files. install root theme with [sudo stow zsh -t /root]
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r--zsh/.zshrc22
1 files changed, 15 insertions, 7 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index 7b454d3..6bba78b 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -127,6 +127,14 @@ zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
+
+#█▓▒░ colors for permissions
+if [[ "$EUID" -ne "0" ]] ; then # if user is not root
+ USER_LEVEL="%F{cyan}"
+else # root!
+ USER_LEVEL="%F{red}"
+fi
+
#█▓▒░ allow functions in the prompt
setopt PROMPT_SUBST
@@ -159,16 +167,16 @@ setopt SHARE_HISTORY
#█▓▒░ custom prompts
#█▓▒░dual line
-PROMPT="%F{cyan}┌[%F{white}%n@%M%F{cyan}]─[%F{red}%~%F{cyan}]
-%F{cyan}└─ %F{white}"
-#RPROMPT="%F{cyan}[%F{white}%n@%M%F{cyan}]"
+PROMPT="${USER_LEVEL}┌[%F{white}%n@%M${USER_LEVEL}]─[%F{white}%~${USER_LEVEL}]
+${USER_LEVEL}└─ %F{white}"
+#RPROMPT="${USER_LEVEL}[%F{white}%n@%M${USER_LEVEL}]"
#█▓▒░ ninja
-PROMPT="%F{white} ▟▙ %F{red}%~%F{white}
-▟▒%F{blue}░░░░░░░%F{white}▜▙▜████████████████████████████████▛
-▜▒%F{blue}░░░░░░░%F{white}▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛
+PROMPT="%F{white} ▟▙ ${USER_LEVEL}%~%F{white}
+▟▒${USER_LEVEL}░░░░░░░%F{white}▜▙▜████████████████████████████████▛
+▜▒${USER_LEVEL}░░░░░░░%F{white}▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛
▜▛
%F{white}"
#█▓▒░ minial
-PROMPT='%F{cyan}[%F{white}%~%F{cyan}]$(prompt_git_info)── -%f '
+PROMPT='${USER_LEVEL}[%F{white}%~${USER_LEVEL}]$(prompt_git_info)── -%f '