We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b97e1b9 + b42552b commit 9e161bfCopy full SHA for 9e161bf
1 file changed
docs/source/tips.rst
@@ -67,7 +67,7 @@ In the ``postmkvirtualenv`` script I have the following to create a
67
directory based on the project name, add that directory to the python
68
path and then cd into it::
69
70
- proj_name=$(echo $VIRTUAL_ENV|awk -F'/' '{print $NF}')
+ proj_name=$(basename $VIRTUAL_ENV)
71
mkdir $HOME/projects/$proj_name
72
add2virtualenv $HOME/projects/$proj_name
73
cd $HOME/projects/$proj_name
@@ -76,7 +76,7 @@ path and then cd into it::
76
In the ``postactivate`` script I have it set to automatically change
77
to the project directory when I use the workon command::
78
79
80
cd ~/projects/$proj_name
81
82
Automatically Run workon When Entering a Directory
0 commit comments