dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 9fec4adb6b68b0811f993f32bec9e78d66a3b297
parent 6d06bfb58f4c4213e97f6b7aa6c5c1ec4888d402
Author: Alex Balgavy <EMAIL>
Date:   Fri,  1 Mar 2019 22:46:59 +0100

A few more if guards


Former-commit-id: bf43f61b492df4306a19fe2a63828c56de07da44
Diffstat:
Mshell/zshrc | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/shell/zshrc b/shell/zshrc @@ -121,14 +121,18 @@ if [ -f ~/.config/exercism/exercism_completion.zsh ]; then fi # Z initialization -. /usr/local/etc/profile.d/z.sh +if command -v z &> /dev/null; then + . /usr/local/etc/profile.d/z.sh +fi # rbenv init -if [[ $PATH != *"$HOME/.rbenv/shims"* ]]; then +if [[ $PATH != *"$HOME/.rbenv/shims"* ]] && command -v rbenv &> /dev/null; then eval "$(rbenv init -)" fi # jenv -export PATH="$HOME/.jenv/bin:$PATH" -eval "$(jenv init -)" -export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home" +if command -v jenv &> /dev/null; then + export PATH="$HOME/.jenv/bin:$PATH" + eval "$(jenv init -)" + export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home" +fi