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
|
||||
}
|
||||
|
|
3
.bashrc
3
.bashrc
|
@ -76,9 +76,6 @@ if hash rbenv 2>/dev/null; then
|
|||
eval "$(rbenv init -)"
|
||||
fi
|
||||
|
||||
# Misc utilities
|
||||
fliptable() { echo "(╯°□°)╯ ┻━┻"; }
|
||||
|
||||
# GPG Agent
|
||||
if [ -f "${HOME}/.gpg-agent-info" ]; then
|
||||
. "${HOME}/.gpg-agent-info"
|
||||
|
|
Loading…
Reference in a new issue