commit fe3dba29340031669bbb5137f490fe5defa7c3c3
parent f3ba3f19c02f231498efa68956216b02cd8e2a93
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sat, 9 Mar 2019 13:28:06 +0100
Fixed a problem with if guards
The z command wasn't initing, because my if guards were inverted
(because I'm an idiot).
Former-commit-id: 2d907994a3e762b227ebbceef349fe81c8ac5d09
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/shell/zshrc b/shell/zshrc
@@ -115,13 +115,13 @@ POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(user dir virtualenv vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history ram time battery)
# Aliases
-source ~/.commonprofile
+source $HOME/.commonprofile
if [ -f ~/.config/exercism/exercism_completion.zsh ]; then
source ~/.config/exercism/exercism_completion.zsh
fi
# Z initialization
-if command -v z &> /dev/null; then
+if ! command -v z &> /dev/null; then
. /usr/local/etc/profile.d/z.sh
fi
@@ -131,7 +131,7 @@ if [[ $PATH != *"$HOME/.rbenv/shims"* ]] && command -v rbenv &> /dev/null; then
fi
# jenv
-if command -v jenv &> /dev/null; then
+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"