virtualenv helper
This commit is contained in:
parent
650b67cf98
commit
b409ffadef
2 changed files with 11 additions and 3 deletions
|
@ -20,3 +20,14 @@ alias weechat='TERM=screen-256color weechat'
|
|||
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"'
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue