Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This shell script is inspired by in: This thing does 2 things written in the website. 1. Makes "tags" file in each directory under the given directory. 2. Makes "tags" file in the given directory, which contains all tags under the directory. Example: When you have this structure: ~/project/hoge…
# Inspired by from:
# Using "Approach 3" written in the website, but there are two changes.
# 1. Type one command and you are done. For current dir: $ .
# I'm pretty sure you don't want do this at $HOME, so handle with care!
# 2. Use ctags in directory. Do not use the Mac default. It sucks.
# Please do not forget to chmod +x
CMDNAME=`basename $0`
if [ $# -ne 1 ]; then
echo "Usage: $CMDNAME dir" 1>&2
exit 1
cd $1
for var in `find * -type d`
cd $var
/Applications/ *
cd - > /dev/null # cd yells when used with - option, so /dev/null it.
/Applications/ --file-scope=no -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.