Skip to content

Instantly share code, notes, and snippets.

@cyeong
Created October 10, 2012 00:53
Show Gist options
  • Save cyeong/3862488 to your computer and use it in GitHub Desktop.
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)
#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