From be3bb7ff5dc766a5885df237de4843e4115f8ae2 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 6 Sep 2019 15:49:28 +0200 Subject: zsh: fixes and additions --- zsh/.zshrc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'zsh') 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 -- cgit v1.2.3