27 lines
767 B
Bash
27 lines
767 B
Bash
|
|
# activate ls colors, (private if possible)
|
|
if [[ -a $HOME/.dir_colors ]]; then
|
|
if [[ "$TERM" == *256* ]]; then
|
|
which dircolors > /dev/null && eval "`dircolors -b $HOME/.dir_colors`"
|
|
else
|
|
# standard colors for non-256-color terms
|
|
which dircolors > /dev/null && eval "`dircolors -b`"
|
|
fi
|
|
else
|
|
which dircolors > /dev/null && eval "`dircolors -b`"
|
|
fi
|
|
|
|
# debian and ubuntu specific aliases
|
|
## autocomplete-able apt-xxx aliases
|
|
alias acs='apt-cache show'
|
|
alias agi='sudo apt-get install'
|
|
alias ag='sudo apt-get'
|
|
alias agu='sudo apt-get update'
|
|
alias agug='sudo apt-get upgrade'
|
|
alias aguu='agu && agug'
|
|
alias agr='sudo apt-get uninstall'
|
|
alias agp='sudo apt-get purge'
|
|
alias aga='sudo apt-get autoremove'
|
|
alias ctl='sudo service '
|
|
|