virtualenv helper

This commit is contained in:
Rodolphe Breard 2013-11-18 19:26:45 +01:00
parent 650b67cf98
commit b409ffadef
2 changed files with 11 additions and 3 deletions

View file

@ -20,3 +20,14 @@ alias weechat='TERM=screen-256color weechat'
alias lock='xscreensaver-command --lock' alias lock='xscreensaver-command --lock'
alias meteo='curl -s --user-agent "USER FUCKING AGENT" "http://thefuckingweather.com/?where=Paris" | grep "<p class=\"remark\">" | sed -r "s/.*>(.*)<.*/\1 OUTSIDE\!/g"' alias meteo='curl -s --user-agent "USER FUCKING AGENT" "http://thefuckingweather.com/?where=Paris" | grep "<p class=\"remark\">" | sed -r "s/.*>(.*)<.*/\1 OUTSIDE\!/g"'
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
}

View file

@ -76,9 +76,6 @@ if hash rbenv 2>/dev/null; then
eval "$(rbenv init -)" eval "$(rbenv init -)"
fi fi
# Misc utilities
fliptable() { echo "(╯°□°)╯ ┻━┻"; }
# GPG Agent # GPG Agent
if [ -f "${HOME}/.gpg-agent-info" ]; then if [ -f "${HOME}/.gpg-agent-info" ]; then
. "${HOME}/.gpg-agent-info" . "${HOME}/.gpg-agent-info"