diff --git a/zsh/zshrc b/zsh/zshrc index cb57024..2429bc3 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -123,11 +123,11 @@ autoload -U colors && colors case $( uname ) in ( *[Ll]inux* ) case "$HOSTNAME" in - ( vmp* ) host='cluster';; # Auto-detect whether we're running on the - ( vpac* ) host='astro';; # ACCRE cluster or the VPAC network at - ( * ) host='linux';; # Vanderbilt, and set options appropriately + ( vmp* ) hostenv='cluster';; # Auto-detect whether we're running on the + ( vpac* ) hostenv='astro';; # ACCRE cluster or the VPAC network at + ( * ) hostenv='linux';; # Vanderbilt, and set options appropriately esac;; - ( *[Dd]arwin* ) host='osx';; + ( *[Dd]arwin* ) hostenv='osx';; ( * ) echo 'running on unknown host' && return;; esac @@ -138,7 +138,7 @@ esac #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -if [[ $host == cluster ]]; then +if [[ $hostenv == cluster ]]; then setpkgs -a gcc_compiler setpkgs -a intel_compiler setpkgs -a fftw2-mpich2_gcc_ether @@ -166,7 +166,7 @@ fi typeset -U path -case "$host" in +case "$hostenv" in ( cluster ) path=(/usr/local/supermongo/bin # Supermongo path /usr/local/cuda/bin # Nvidia CUDA path @@ -225,7 +225,7 @@ export path #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -if [[ $host == osx ]]; then +if [[ $hostenv == osx ]]; then export EDITOR='vim' # Use vim as default text editor else export EDITOR='vim -display none' # Use vim as default text editor