summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2019-09-06 15:49:28 +0200
committerPatrick Simianer <p@simianer.de>2019-09-06 15:49:28 +0200
commitbe3bb7ff5dc766a5885df237de4843e4115f8ae2 (patch)
tree02dc23ee623077ecd738824598164ea21f2516c0 /zsh
parent624fc30b0854412064616da9f527e86694235711 (diff)
zsh: fixes and additions
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc14
1 files changed, 8 insertions, 6 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index cedf300..d213e42 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -31,7 +31,6 @@ _HOST_TYPE=$(uname)
HOSTNAME=$(hostname -f 2>/dev/null)
if [[ $? == 0 ]]; then
- echo "X"
else
HOSTNAME=$(hostname)
fi
@@ -306,6 +305,7 @@ case $_HOST_TYPE in
;;
Linux)
alias ls='ls -h --color=auto'
+ export LD_LIBRARY_PATH=$HOME/.local/lib:$HOME/.local/lib64:$LD_LIBRARY_PATH
;;
esac
@@ -371,9 +371,11 @@ if [[ $_HOST_TYPE == "Linux" ]]; then
alias lpimg='/usr/bin/lp -o fit-to-page'
fi
-if [[ $(hostname) == "barkley" ]]; then
- if [[ -f $HOME/.files/zsh/.zshrc.work ]]; then
- source $HOME/.files/zsh/.zshrc.work
- fi
-fi
+case $HOSTNAME in
+ barkley*)
+ if [[ -f $HOME/.files/zsh/.zshrc.work ]]; then
+ source $HOME/.files/zsh/.zshrc.work
+ fi
+ ;;
+esac