Created
October 10, 2012 00:53
-
-
Save cyeong/3862488 to your computer and use it in GitHub Desktop.
Lines to make pycscope environment aware (add this to your .virtualenv/postactivate file)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #add these lines to your .virtualenv/postactivate | |
| #also add the cscope_maps.vim file at https://gist.github.com/3862602 to .vim/plugin/ | |
| #find $VIRTUAL_ENV/lib/python2.7/site-packages ${PWD} -name '*.py' > $VIRTUAL_ENV/cscope.files && cscope -R #-b -q -f $VIRTUAL_ENV/cscope.out -i $VIRTUAL_ENV/cscope.files | |
| #(original cscope function) | |
| nohup find ${PWD} -name '*.py' > $VIRTUAL_ENV/cscope.files && pycscope -f $VIRTUAL_ENV/cscope.out -i $VIRTUAL_ENV/cscope.files & disown | |
| CSCOPE_DB=$VIRTUAL_ENV/cscope.out; export CSCOPE_DB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment