Skip to content

Commit 7ffe1f2

Browse files
committed
Handle Fig not being installed
1 parent bf4fed5 commit 7ffe1f2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.zshrc

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Fig pre block. Keep at the top of this file.
2-
. "$HOME/.fig/shell/zshrc.pre.zsh"
2+
if [ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]; then
3+
. "$HOME/.fig/shell/zshrc.pre.zsh"
4+
fi
35

46
export ZSH=~/.oh-my-zsh # Path to your oh-my-zsh installation.
57

@@ -199,4 +201,6 @@ test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell
199201
HEROKU_AC_ZSH_SETUP_PATH=~/Library/Caches/heroku/autocomplete/zsh_setup && test -f $HEROKU_AC_ZSH_SETUP_PATH && source $HEROKU_AC_ZSH_SETUP_PATH;
200202

201203
# Fig post block. Keep at the bottom of this file.
202-
. "$HOME/.fig/shell/zshrc.post.zsh"
204+
if [ -f "$HOME/.fig/shell/zshrc.post.zsh" ]; then
205+
. "$HOME/.fig/shell/zshrc.post.zsh"
206+
fi

0 commit comments

Comments
 (0)