commit 57cb7cc7a4ba457be52b3552e230a36a347917ba parent ba1143574a6ac28cbbb47a1e7961d6bb1c1c29ae Author: finwo <finwo@pm.me> Date: Mon, 21 Mar 2022 12:00:34 +0100 Choose gnu over osx for cp/ls/mv/rm Diffstat:
| M | zsh/home/.zshrc | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/zsh/home/.zshrc b/zsh/home/.zshrc @@ -38,6 +38,14 @@ function version() { } # }}} +# OSX coreutil fixes {{{ + +command -v gcp &>/dev/null && alias cp="gcp" +command -v gls &>/dev/null && alias ls="gls" +command -v gmv &>/dev/null && alias mv="gmv" +command -v grm &>/dev/null && alias rm="grm" + +# }}} # Aliases {{{ # VI @@ -48,6 +56,9 @@ command -v "vim" &>/dev/null && alias vi="vim" alias ls="ls --color=always" alias ll="ls -lsa" +# OSX LS fix +command -v gls &>/dev/null && alias ls="gls --color=always" + # $EDITOR command -v nano &>/dev/null && export EDITOR=nano command -v vi &>/dev/null && export EDITOR=vi