Source

dotfiles / dotfiles / .bash_aliases

Full commit
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias lla='ls -lA'
alias lt='ls -ltrA'
alias tl='twidge update'
alias lstl='twidge lsarchive'
alias psg='ps aux | grep -i'

if [ -x /usr/bin/htop ]; then
    alias top='htop'
fi

# apt stuff
alias upgrade='sudo aptitude safe-upgrade'
alias fupgrade='sudo aptitude full-upgrade'
alias update='sudo aptitude update'
alias install='sudo aptitude install'
alias canhaz=install
alias remove='sudo aptitude remove'
alias upandup='update && upgrade'
alias search='aptitude search'
alias show='aptitude show'

alias rmpyc='find . -name "*.pyc" -delete'
alias testsyncdb='python manage.py syncdb --settings=settings_local_test'
alias testmigrate='python manage.py migrate --settings=settings_local_test'
#alias djsetuptest='django-test-setup.py -cm && testsyncdb && testmigrate'
alias djtest='python manage.py test --settings=settings_local_test'
alias djrunserver='python manage.py runserver 0.0.0.0:8000'
alias pysearch='find . -name "*.py" -o -name "*.html" -o -name "*.js" -o -name "*.css" | xargs grep -in'
alias svnupup='pushd .. && rmpyc && svn up && popd'

cl(){
    cd $1 && ll
}