diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2024-01-06 11:46:29 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2024-01-06 11:46:29 +0000 |
| commit | 2948545ace2a5d9aa0389eaba3f6f1b0e83cd1cd (patch) | |
| tree | d0803ab7c80986a38ce40e99bee431bd4121da28 /dotfiles-darwin/zsh | |
| parent | 5da80bb44cf623ea5b422b8685318d4437427177 (diff) | |
darwin/zsh: Only use some GNU tools by default
Diffstat (limited to 'dotfiles-darwin/zsh')
| -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 } |
