aboutsummaryrefslogtreecommitdiff
path: root/.config/aliasrc
diff options
context:
space:
mode:
authorNicholas Tay <nkt@outlook.kr>2021-04-10 14:56:23 +1000
committerNicholas Tay <nkt@outlook.kr>2021-04-10 14:56:23 +1000
commitc1aae3af259b6ea254d66c334f3d398c19029518 (patch)
treefc07c2b920926146a0286f970f1c030777d23c60 /.config/aliasrc
parentc3c002d0913b9be2e56173e073b39041181bf660 (diff)
downloaddotlite-c1aae3af259b6ea254d66c334f3d398c19029518.tar.gz
dotlite-c1aae3af259b6ea254d66c334f3d398c19029518.tar.bz2
dotlite-c1aae3af259b6ea254d66c334f3d398c19029518.zip
macOS changes
Diffstat (limited to '')
-rw-r--r--.config/aliasrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/.config/aliasrc b/.config/aliasrc
index 1da43c6..364df5a 100644
--- a/.config/aliasrc
+++ b/.config/aliasrc
@@ -8,9 +8,13 @@ alias cp="cp -iv"
alias mv="mv -iv"
# Utility colours
-alias ls="ls --color=auto --group-directories-first"
alias grep="grep --color=auto"
-alias diff="diff --color=auto"
+if [ "$(uname -s)" != "Darwin" ]; then
+ alias ls="ls --color=auto --group-directories-first"
+ alias diff="diff --color=auto"
+else
+ alias ls="ls -G"
+fi
# dotfiles management
alias d="git --git-dir=$HOME/.dotlite.git --work-tree=$HOME"