added different color for root

This commit is contained in:
Sheppy
2016-12-15 17:48:17 +01:00
parent b2a061f922
commit 14f87f9213

9
zshrc
View File

@@ -11,8 +11,12 @@ COLORED_STDERR_FDS=2,
export LD_PRELOAD COLORED_STDERR_FDS
### PROMT ###
MAIN_PROMT_COLOR="green"
if [[ $USER == "root" ]]
MAIN_PROMT_COLOR="red"
fi
setopt promptsubst
CMD_START=$'%F{green}--->%f '
CMD_START=$'%F{MAIN_PROMT_COLOR}--->%f '
PS1=$'%F{yellow}%m%f%F{red}:%f%F{cyan}%~%f\n'$CMD_START #promt
PS1=%F{green}$'${(r:$COLUMNS::\u2500:)}'%f$PS1
@@ -148,6 +152,9 @@ function key(){
ssh-add $gitssh
}
## ROOT ##
alias udev_reload="udevadm control --reload-rules && udevadm trigger" #reload all udevrules on the fly
### GENE-SHIT ###
if [[ $HOST == "atlantislaptop" ]]; then
GENE_BASE="/home/ik15ydit/bcarbeit/new_try"