Skip to content

Instantly share code, notes, and snippets.

@calvez
Created August 26, 2022 12:07
Show Gist options
  • Save calvez/fbbc006edf89e26a3d62eb79cc9c6bd5 to your computer and use it in GitHub Desktop.
Save calvez/fbbc006edf89e26a3d62eb79cc9c6bd5 to your computer and use it in GitHub Desktop.
bash or zsh directory colors and listing tweaks
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -alhtF'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment