From 530d1078aaef0eeef95404324b915dc84fe18deb Mon Sep 17 00:00:00 2001 From: sheppy-squarez Date: Mon, 15 May 2017 18:12:46 +0200 Subject: [PATCH] added squarez hostname match --- zshrc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/zshrc b/zshrc index 7e6b1ae..95eeaff 100644 --- a/zshrc +++ b/zshrc @@ -1,3 +1,9 @@ +#### SET CONDITIONALS #### +NO_LDPRELOAD=false +if [[ $HOST == "squarez" ]]; then + NO_LDPRELOAD=true +fi + #### ZSH-INTERNAL #### ### HISTORY ### STSIZE=2000 @@ -6,13 +12,18 @@ HISTFILE=~/.config/zshhistory.log ### 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 & ) -LD_PRELOAD="$HOME/.config/libcoloredstderr.so" -COLORED_STDERR_FDS=2, -export LD_PRELOAD COLORED_STDERR_FDS +if [[ NO_LDPRELOAD == false ]]; then + LD_PRELOAD="$HOME/.config/libcoloredstderr.so" + COLORED_STDERR_FDS=2, + export LD_PRELOAD COLORED_STDERR_FDS +fi ### PROMT ### MAIN_PROMT_COLOR="green" USER_COLOR="yellow" +if [[ $HOST == "squarez" ]]; then + USER_COLOR="cyan" +fi if [[ $USER == "root" ]]; then USER_COLOR="red" MAIN_PROMT_COLOR="red"