Skip to content

Commit

Permalink
Disable exit on err when reloading ~/.zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
toebeann committed Feb 9, 2024
1 parent a47b945 commit ae219de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@

# automatically reload .zshrc if pnpm isn't already in the path
if ! command -v pnpm >/dev/null; then
set +e # ignore errors in the .zshrc, we just need the path to be updated
source ~/.zshrc
set -e # re-enable exit on err
fi

if ! command -v pnpm >/dev/null; then
Expand Down

0 comments on commit ae219de

Please sign in to comment.