2011-04-11 22:47:38 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2011-04-12 19:45:36 +02:00
|
|
|
# linux specific aliases
|
|
|
|
## autocomplete-able apt-xxx aliases
|
|
|
|
alias acs='apt-cache show'
|
2011-07-19 11:48:15 +02:00
|
|
|
alias agi='sudo apt-get install'
|
|
|
|
alias ag='sudo apt-get'
|
|
|
|
alias agu='sudo apt-get update'
|
|
|
|
alias agug='sudo apt-get upgrade'
|
2011-07-27 13:10:46 +02:00
|
|
|
alias aguu='agu && agug'
|
2011-07-19 11:48:15 +02:00
|
|
|
alias agr='sudo apt-get uninstall'
|
|
|
|
alias agp='sudo apt-get purge'
|
2011-07-24 20:35:03 +02:00
|
|
|
alias aga='sudo apt-get autoremove'
|
2011-04-12 19:45:36 +02:00
|
|
|
|
2011-07-29 21:02:52 +02:00
|
|
|
alias ctl='sudo service '
|