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 postactive look in multiple locations
pull/1/head
Brett Langdon
11 years ago
parent
1922380432
commit
13f60c9984
1 changed files
with
10 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-4
postactivate
+ 10
- 4
postactivate
View File
@ -2,7 +2,13 @@
# 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
locs=("src" "simpleoncall" "underdog")
for loc in "${locs[@]}";
do
if [ -d ~/$loc/$proj_name ]
then
cd ~/$loc/$proj_name
break
fi
done;
rehash
Write
Preview
Loading…
Cancel
Save