From 6787b7bc315a699dba6e48e34f09ca624099d584 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 13 Jan 2022 10:53:14 -0500 Subject: path handling in zshrc --- dot_zshrc.tmpl | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'dot_zshrc.tmpl') 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' -- cgit v1.2.3