Skip to content

Instantly share code, notes, and snippets.

@zachwhaley
Last active February 1, 2017 17:22
Show Gist options
  • Save zachwhaley/52de59922f44833ba757 to your computer and use it in GitHub Desktop.
Save zachwhaley/52de59922f44833ba757 to your computer and use it in GitHub Desktop.
Make cscope C/C++ tags
#!/usr/bin/env bash
[[ $# -eq 1 ]] && cd $1
find `pwd` -name "*.[ch]" -o -name "*.[ch]pp" -o -name "*.cc" -o -name "*.hh" > cscope.files
cscope -b -q -u
cat cscope.files | xargs ctags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment