Skip to content

Commit

Permalink
sh hook: export dir function last, in case of error (e.g., busybox)
Browse files Browse the repository at this point in the history
  • Loading branch information
avindra committed Nov 21, 2024
1 parent 1e1802e commit 1b49e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ dir () {
fi
}
export -f dir >/dev/null 2>&1
alias d=dir
alias d.="dir ."
alias d..="dir .."
export -f dir >/dev/null 2>&1
`)
}

Expand Down

0 comments on commit 1b49e94

Please sign in to comment.