Skip to content

Commit

Permalink
go_use_* aliases should be conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
fbartho committed Nov 15, 2021
1 parent c79910b commit 2679457
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .profile
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

## Load aliases
source "$HOME/.aliases.bash"
source `which go_use_aliases`
source `which go_use_fixup_env`
# Conditionally enable my go_use utility
if command -v go_use_aliases &>/dev/null; then
source `which go_use_aliases`
source `which go_use_fixup_env`
fi

# Alias Hub as Git
eval "$(hub alias -s)"
Expand Down

0 comments on commit 2679457

Please sign in to comment.