Skip to content

Commit

Permalink
Merge pull request #1 from mathew-fleisch/main
Browse files Browse the repository at this point in the history
Fix bug when executing cd with no arguments
  • Loading branch information
mschrage authored Oct 15, 2020
2 parents aa9dce7 + 0041075 commit 17762d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ then
fig bg:cd

# Backup for getting Fig's context
function cd() { builtin cd "$1"; fig bg:cd || true; }
function cd() { if [ -n "$1" ]; then builtin cd "$1"; else builtin cd; fi; fig bg:cd || true; }

##Run aliases shell script
[ -s ~/.fig/user/aliases/_myaliases.sh ] && source ~/.fig/user/aliases/*.sh
Expand Down

0 comments on commit 17762d8

Please sign in to comment.