alias ls="ls --color" # catch busybox (and others where ls is symlink to something else) if [[ ${${commands[ls]}:A:t} == ls ]]; then alias ll="ls -lh --color --time-style=long-iso" else alias ll="ls -lh --color" fi