mirror of
https://github.com/FAUSheppy/config
synced 2025-12-09 08:08:32 +01:00
added different color for root
This commit is contained in:
9
zshrc
9
zshrc
@@ -11,8 +11,12 @@ COLORED_STDERR_FDS=2,
|
|||||||
export LD_PRELOAD COLORED_STDERR_FDS
|
export LD_PRELOAD COLORED_STDERR_FDS
|
||||||
|
|
||||||
### PROMT ###
|
### PROMT ###
|
||||||
|
MAIN_PROMT_COLOR="green"
|
||||||
|
if [[ $USER == "root" ]]
|
||||||
|
MAIN_PROMT_COLOR="red"
|
||||||
|
fi
|
||||||
setopt promptsubst
|
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{yellow}%m%f%F{red}:%f%F{cyan}%~%f\n'$CMD_START #promt
|
||||||
PS1=%F{green}$'${(r:$COLUMNS::\u2500:)}'%f$PS1
|
PS1=%F{green}$'${(r:$COLUMNS::\u2500:)}'%f$PS1
|
||||||
|
|
||||||
@@ -148,6 +152,9 @@ function key(){
|
|||||||
ssh-add $gitssh
|
ssh-add $gitssh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## ROOT ##
|
||||||
|
alias udev_reload="udevadm control --reload-rules && udevadm trigger" #reload all udevrules on the fly
|
||||||
|
|
||||||
### GENE-SHIT ###
|
### GENE-SHIT ###
|
||||||
if [[ $HOST == "atlantislaptop" ]]; then
|
if [[ $HOST == "atlantislaptop" ]]; then
|
||||||
GENE_BASE="/home/ik15ydit/bcarbeit/new_try"
|
GENE_BASE="/home/ik15ydit/bcarbeit/new_try"
|
||||||
|
|||||||
Reference in New Issue
Block a user