aboutsummaryrefslogtreecommitdiff
path: root/shellrc
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-05-07 19:21:29 +0200
committerKarel Kočí <cynerd@email.cz>2017-05-07 19:21:29 +0200
commitd9fbecd579fc4881b7abffd8aaab06666286dfcf (patch)
tree3d00923c355165e46fdaa25a8528fbf6e9dbb4de /shellrc
parentb07415a90adc6fc40d4f693bdadaba49d6d8d7cb (diff)
downloadmyconfigs-d9fbecd579fc4881b7abffd8aaab06666286dfcf.tar.gz
myconfigs-d9fbecd579fc4881b7abffd8aaab06666286dfcf.tar.bz2
myconfigs-d9fbecd579fc4881b7abffd8aaab06666286dfcf.zip
ls colors support FreeBSD
Diffstat (limited to 'shellrc')
-rw-r--r--shellrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/shellrc b/shellrc
index ce625aa..c357ef0 100644
--- a/shellrc
+++ b/shellrc
@@ -4,7 +4,11 @@
# Continue only if this is interactive shell
[[ $- != *i* ]] && return
-alias ls='ls --color=auto'
+if [ "$(uname -s)" = "FreeBSD" ]; then
+ alias ls='ls -G'
+else
+ alias ls='ls --color=auto'
+fi
alias ll='ls -l'
eval $(dircolors -b)
alias grep='grep --color=auto'