aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2022-01-13 10:53:14 -0500
committerRyan Kavanagh <rak@rak.ac>2022-01-13 10:53:26 -0500
commit6787b7bc315a699dba6e48e34f09ca624099d584 (patch)
treed59343b587dc041d29de95b372a0f08578023ea0
parentupdate wpa_supplicant config (diff)
path handling in zshrc
Diffstat (limited to '')
-rw-r--r--dot_zshrc.tmpl21
1 files changed, 15 insertions, 6 deletions
diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl
index d67d962..d554e8a 100644
--- a/dot_zshrc.tmpl
+++ b/dot_zshrc.tmpl
@@ -48,12 +48,6 @@ export BZR_EMAIL="$NAME <$EMAIL>" # Override email for Bazaar.
export GIT_AUTHOR_NAME=$NAME
export DARCS_EMAIL="$NAME <$EMAIL>"
export QUILT_PATCHES=debian/patches
-if [[ `hostname` = "demeter.rak.ac" ]]; then
- export PATH=${HOME}/bin:/opt/local/bin:/opt/local/sbin:/usr/sbin:/sbin:$PATH:${GEM_BIN}:${HOME}/.local/bin/
- export MANPATH=/opt/local/share/man:$MANPATH
-else
- export PATH=${HOME}/bin:/usr/sbin:/sbin:$PATH:${GEM_BIN}:${HOME}/.local/bin/
-fi
export MANWIDTH=80
export MANOPT="-L en"
export PAGER=less
@@ -64,6 +58,21 @@ export TEXMFHOME=${HOME}/.texmf
export KRB5CCNAME=DIR:${HOME}/.cache/krb5cc # kerberos credentials cache
export GOPATH=${HOME}/.go
+export PATH=/usr/sbin:/sbin:${PATH}
+case `uname` in
+ Linux)
+ ;;
+ Darwin)
+ export PATH=/opt/local/bin:/opt/local/sbin:/usr/sbin:/sbin:$PATH
+ export MANPATH=/opt/local/share/man:${MANPATH}
+ ;;
+ OpenBSD)
+ export PATH=/usr/games:${PATH}
+ ;;
+ *)
+esac
+export PATH=${HOME}/bin:${PATH}
+
alias apt-upgrade='sudo apt-get update && sudo apt-get dist-upgrade'
alias dbuild='GPG_TTY=$(tty) debuild -S -sa -k$GPGKEY'
alias itp='reportbug -M -B debian --email rak@debian.org --paranoid -K $GPGKEY wnpp'