Browse Source

have setup.sh setup virtualenvwrapper requirements

pull/1/head
Brett Langdon 12 years ago
parent
commit
d9d1336f56
2 changed files with 14 additions and 0 deletions
  1. +8
    -0
      postactivate
  2. +6
    -0
      setup.sh

+ 8
- 0
postactivate View File

@ -0,0 +1,8 @@
#!/usr/bin/zsh
# This hook is run after every virtualenv is activated.
proj_name=$(echo $VIRTUAL_ENV|awk -F'/' '{print $NF}')
if [ -d ~/src/$proj_name ]
then
cd ~/src/$proj_name
fi

+ 6
- 0
setup.sh View File

@ -34,5 +34,11 @@ for file in $files; do
fi
done
echo "Setting up virtualenvwrapper"
echo "Creating ~/.env"
mkdir -p ~/.env
echo "Moving postactivate into place"
ln -s $dir/postactivate ~/.env/postactivate
echo "Source ~/.zshrc"
. ~/.zshrc

Loading…
Cancel
Save