diff options
Diffstat (limited to '')
-rw-r--r-- | dot_zshrc.tmpl | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 62fef86..ed06714 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -51,28 +51,17 @@ export PAGER=less export LESS=-FQXR export PDFVIEWER=evince export BROWSER=firefox -export TEXMFHOME=${HOME}/.texmf export KRB5CCNAME=DIR:${HOME}/.cache/krb5cc # kerberos credentials cache export GOPATH=${HOME}/.go -for common in ${HOME}/.config/sh/*; do +for common in "${HOME}/.config/sh/"*; do [ -f "${common}" ] && . "${common}" done -export PATH=/usr/sbin:/sbin:${PATH} -case `uname` in - Linux) - ;; - Darwin) - export PATH=/opt/local/bin:/opt/local/sbin:/usr/sbin:/sbin:$PATH +if [ "$(uname)" = "Darwin" ]; then + export PATH="/opt/local/bin:/opt/local/sbin:${PATH}" export MANPATH=/opt/local/share/man:${MANPATH} - ;; - OpenBSD) - export PATH=/usr/games:${PATH} - ;; - *) -esac -export PATH=${HOME}/bin:${PATH} +fi # END LOCAL @@ -80,9 +69,7 @@ export PATH=${HOME}/bin:${PATH} # Ensure that we possess a ~/.zsh/ directory. This is required for the # ~/.zsh/history file. -if [ ! -d $HOME/.zsh/ ]; then - mkdir -p $HOME/.zsh/ -fi +mkdir -p $HOME/.zsh/ # We use powerline10k for our prompt for f in $HOME/.zsh/p10k.zsh $HOME/.zsh/powerlevel10k/powerlevel10k.zsh-theme; do |