This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
dotfiles
mirror of
https://github.com/brettlangdon/dotfiles.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
have setup.sh setup virtualenvwrapper requirements
pull/1/head
Brett Langdon
12 years ago
parent
c88df72bde
commit
d9d1336f56
2 changed files
with
14 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
postactivate
+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
Write
Preview
Loading…
Cancel
Save