mirror of
https://github.com/Lissy93/dotfiles.git
synced 2024-12-03 20:53:22 +01:00
21 lines
779 B
Bash
21 lines
779 B
Bash
|
#!/usr/bin/env zsh
|
||
|
|
||
|
# Enable dircolors.
|
||
|
if type -p dircolors &>/dev/null; then
|
||
|
# Enable custom colors if it exists.
|
||
|
[ -e "${XDG_CONFIG_HOME}/dircolors" ] && \
|
||
|
eval "$(dircolors -b "${XDG_CONFIG_HOME}/dircolors")" || \
|
||
|
eval "$(dircolors -b)"
|
||
|
fi
|
||
|
|
||
|
# Colorize 'ls' command. Based on Oh My Zsh;
|
||
|
ls --color -d . &>/dev/null && alias ls='ls --color=tty' || { ls -G . &>/dev/null && alias ls='ls -G' }
|
||
|
|
||
|
alias vdir="vdir --color=auto" # Colorize 'vdir' command.
|
||
|
|
||
|
alias grep="grep --color=auto -i" # Colorize 'grep' command and ignore case.
|
||
|
alias fgrep="grep --color=auto -i" # Colorize 'fgrep' command and ignore case.
|
||
|
alias egrep="grep --color=auto -i" # Colorize 'egrep' command and ignore case.
|
||
|
|
||
|
alias diff="diff --color=auto" # Colorize 'diff' command.
|