Skip to content

Commit

Permalink
Merge pull request #300 from himkt/ls-color
Browse files Browse the repository at this point in the history
misc(zsh): simplify ls option
  • Loading branch information
himkt authored Jan 30, 2025
2 parents 0f3e19f + 1a8e315 commit fcdb860
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions zsh/config.d/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ setopt prompt_subst # enable substitution in prompt (needed if we want to s
zstyle ':completion:*:default' menu select=2 # enable menu in completion.

function ls () {
case ${OSTYPE} in
darwin*)
command ls -G $@ ;;
linux*)
command ls --color $@ ;;
esac
command ls --color $@
}

function date () {
Expand Down

0 comments on commit fcdb860

Please sign in to comment.