From 427a2a50a548fb5dc1e00df6e07b4bffca07873a Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Mon, 1 May 2017 04:57:19 -0400 Subject: [PATCH] Add some tests to zshrc --- zshenv | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/zshenv b/zshenv index 66c91bd..a73d30c 100644 --- a/zshenv +++ b/zshenv @@ -39,12 +39,15 @@ fi path=($HOME/bin $HOME/.dotfiles/bin ${ANSIBLE_DIR}/bin ${RBENV_PATH}/bin $HOME/.vim/scripts $path) if [[ $platform == 'Darwin' ]]; then - source $HOME/.cargo/env + test -f $HOME/.cargo && source $HOME/.cargo/env + # TODO: test for qt path=($HOME/Qt/5.8/clang_64/bin $path) fi -# Start rbenv -eval "$(rbenv init -)" +if [ -d "$HOME/.rbenv" ]; then + # Start rbenv + eval "$(rbenv init -)" +fi # Start the SSH agent eval "$(ssh-agent -s)" > /dev/null