added squarez hostname match

This commit is contained in:
sheppy-squarez
2017-05-15 18:12:46 +02:00
parent b6ffdb9f2a
commit 530d1078aa

17
zshrc
View File

@@ -1,3 +1,9 @@
#### SET CONDITIONALS ####
NO_LDPRELOAD=false
if [[ $HOST == "squarez" ]]; then
NO_LDPRELOAD=true
fi
#### ZSH-INTERNAL #### #### ZSH-INTERNAL ####
### HISTORY ### ### HISTORY ###
STSIZE=2000 STSIZE=2000
@@ -6,13 +12,18 @@ HISTFILE=~/.config/zshhistory.log
### COLOR STDERR ### ### COLOR STDERR ###
#legacy, this causes problems in output odering exec 2>>( while IFS='' read X; do print "\e[91m${X}\e[0m" > /dev/tty; done & ) #legacy, this causes problems in output odering exec 2>>( while IFS='' read X; do print "\e[91m${X}\e[0m" > /dev/tty; done & )
LD_PRELOAD="$HOME/.config/libcoloredstderr.so" if [[ NO_LDPRELOAD == false ]]; then
COLORED_STDERR_FDS=2, LD_PRELOAD="$HOME/.config/libcoloredstderr.so"
export LD_PRELOAD COLORED_STDERR_FDS COLORED_STDERR_FDS=2,
export LD_PRELOAD COLORED_STDERR_FDS
fi
### PROMT ### ### PROMT ###
MAIN_PROMT_COLOR="green" MAIN_PROMT_COLOR="green"
USER_COLOR="yellow" USER_COLOR="yellow"
if [[ $HOST == "squarez" ]]; then
USER_COLOR="cyan"
fi
if [[ $USER == "root" ]]; then if [[ $USER == "root" ]]; then
USER_COLOR="red" USER_COLOR="red"
MAIN_PROMT_COLOR="red" MAIN_PROMT_COLOR="red"