mirror of
https://github.com/FAUSheppy/config
synced 2025-12-11 00:58:33 +01:00
added squarez hostname match
This commit is contained in:
17
zshrc
17
zshrc
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user