Skip to content

Instantly share code, notes, and snippets.

@smathy
Created March 26, 2014 17:54
Show Gist options
  • Save smathy/9789295 to your computer and use it in GitHub Desktop.
Save smathy/9789295 to your computer and use it in GitHub Desktop.
tags() {
dir=$1
if [[ "$dir" == "" ]]; then
dir='.'
fi
if [[ ! -d $dir ]]; then
echo $'\e[1;31m'Error: $dir is not a directory.$'\e[0m'
return 1
fi
ctags -Rf "$dir/.tags" "$dir" $(bundle list --paths)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment