diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2021-07-04 17:52:52 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2021-07-04 17:52:52 +0100 |
| commit | c54a883464a00553a7b9163798b58c15835cfb31 (patch) | |
| tree | 1e56bb8e33fcf0818f0372df02418a36c750a00f /dotfiles-darwin | |
| parent | 8420ebab039189dd9b9d50b995725c709b8ea3c7 (diff) | |
darwin/zsh: Configure aliases for GNU ls if found
Diffstat (limited to 'dotfiles-darwin')
| -rw-r--r-- | dotfiles-darwin/zsh/profile | 2 | ||||
| -rw-r--r-- | dotfiles-darwin/zsh/rc | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/dotfiles-darwin/zsh/profile b/dotfiles-darwin/zsh/profile index 30a5ef0..e5e4c79 100644 --- a/dotfiles-darwin/zsh/profile +++ b/dotfiles-darwin/zsh/profile @@ -3,7 +3,7 @@ () { local dir for dir ( - /usr/local/opt/{gnu-tar,grep}/libexec/gnubin + /usr/local/opt/{coreutils,gnu-tar,grep}/libexec/gnubin ~/Applications/Emacs.app/Contents/MacOS/bin ); do [[ -d ${dir} ]] && path=(${dir} ${path}) diff --git a/dotfiles-darwin/zsh/rc b/dotfiles-darwin/zsh/rc index b36f8ae..2875e9f 100644 --- a/dotfiles-darwin/zsh/rc +++ b/dotfiles-darwin/zsh/rc @@ -14,3 +14,8 @@ alias python=python3 alias emacs=${emacs} fi } + +if (( ${path[(I)/usr/local/opt/coreutils/libexec/gnubin]} )); then + alias ls='ls --color --group-directories-first' + alias lsh='ls -Shrs' +fi |
