diff options
author | Karel Kočí <cynerd@email.cz> | 2017-05-07 19:21:29 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-05-07 19:21:29 +0200 |
commit | d9fbecd579fc4881b7abffd8aaab06666286dfcf (patch) | |
tree | 3d00923c355165e46fdaa25a8528fbf6e9dbb4de | |
parent | b07415a90adc6fc40d4f693bdadaba49d6d8d7cb (diff) | |
download | myconfigs-d9fbecd579fc4881b7abffd8aaab06666286dfcf.tar.gz myconfigs-d9fbecd579fc4881b7abffd8aaab06666286dfcf.tar.bz2 myconfigs-d9fbecd579fc4881b7abffd8aaab06666286dfcf.zip |
ls colors support FreeBSD
-rw-r--r-- | shellrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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' |