diff options
author | Patrick Simianer <p@simianer.de> | 2019-09-06 15:49:28 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2019-09-06 15:49:28 +0200 |
commit | be3bb7ff5dc766a5885df237de4843e4115f8ae2 (patch) | |
tree | 02dc23ee623077ecd738824598164ea21f2516c0 | |
parent | 624fc30b0854412064616da9f527e86694235711 (diff) |
zsh: fixes and additions
-rw-r--r-- | zsh/.zshrc | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |