aboutsummaryrefslogtreecommitdiff
path: root/dot_zshrc.tmpl
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2024-05-21 23:03:48 -0400
committerRyan Kavanagh <rak@rak.ac>2024-05-21 23:03:48 -0400
commit6e96177632c76eee65ce9fbbde6e6fd0a18dbb21 (patch)
tree8b8e934e239c4f9084c29af1080db9b1d7fa34e1 /dot_zshrc.tmpl
parentrak-meta 0.8 (diff)
parentdrop rendundant check (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
Diffstat (limited to '')
-rw-r--r--dot_zshrc.tmpl23
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