diff options
| -rw-r--r-- | dotfiles-darwin/zsh/profile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dotfiles-darwin/zsh/profile b/dotfiles-darwin/zsh/profile index 35e5d91..7358caa 100644 --- a/dotfiles-darwin/zsh/profile +++ b/dotfiles-darwin/zsh/profile @@ -1,8 +1,9 @@ # -*- mode: shell-script -*- +# Use some GNU tools by default. () { - local dir - for dir in /usr/local/opt/*/libexec/gnubin(N); do - [[ -d ${dir} ]] && path=(${dir} ${path}) + local cmd + for cmd in cksum sed tar; do + (( ${+commands[g${cmd}]} )) && alias ${cmd}=g${cmd} done } |
