dotfiles/.bash_aliases

33 lines
792 B
Bash
Raw Normal View History

2013-03-23 14:48:31 +01:00
alias sudo='sudo '
2013-04-24 17:16:14 +02:00
if [ "$OS_TYPE" == "freebsd" ]; then
2013-04-24 16:50:40 +02:00
alias ls='ls -G'
2013-04-24 16:45:37 +02:00
else
alias ls='ls --color=auto'
2013-04-24 16:43:50 +02:00
fi
2013-03-23 14:48:31 +01:00
alias ll='ls -lih'
alias la='ls -A'
alias l='ls -lihA'
alias grep='grep -n --color=auto'
alias j='jobs'
alias ne='emacs'
alias df='df -h'
2013-10-16 14:15:27 +02:00
alias top='TERM=screen-256color htop'
2013-11-13 15:41:28 +01:00
alias weechat='TERM=screen-256color weechat'
2013-03-23 14:48:31 +01:00
alias lock='xscreensaver-command --lock'
2013-08-20 23:17:05 +02:00
alias meteo='curl -s --user-agent "USER FUCKING AGENT" "http://thefuckingweather.com/?where=Paris" | grep "<p class=\"remark\">" | sed -r "s/.*>(.*)<.*/\1 OUTSIDE\!/g"'
2013-11-18 19:26:45 +01:00
fliptable() { echo "(╯°□°)╯ ┻━┻"; }
# Usage: venv project_name
# Activate the python virtualenv for <project_name>.
venv()
{
if [ -f "${HOME}/venvs/$1/bin/activate" ]; then
. "${HOME}/venvs/$1/bin/activate"
fi
}