Skip to content

Commit

Permalink
Add cvenv command and switch to use Python 3 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
berkerpeksag committed Feb 7, 2017
1 parent f8cc539 commit 4c34742
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bashrc
Expand Up @@ -58,10 +58,13 @@ mkd() {
mkdir -p "$@" && cd "$@"
}

# Create a new "Python" directory, enter it, create
# a virtualenv and activate it
# Create a new directory, enter it, create a virtualenv and activate it
pymkd() {
mkdir -p "$@" && cd "$@" && virtualenv "venv" && source ./venv/bin/activate
mkdir -p "$@" && cd "$@" && python3.4 -m venv "venv" && source ./venv/bin/activate
}

cvenv() {
python3.4 -m venv "venv" && source ./venv/bin/activate
}

venv() {
Expand Down

0 comments on commit 4c34742

Please sign in to comment.