Skip to content

Instantly share code, notes, and snippets.

@dustinsenos
Created January 18, 2011 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinsenos/785207 to your computer and use it in GitHub Desktop.
Save dustinsenos/785207 to your computer and use it in GitHub Desktop.
#
# Add the following line to ~/.profile to enable recursively adding all unversioned.
# You'll need to close and open terminal for this to take [e|a]ffect. Or run '. ~/.profile'
#
# Usage: Type 'svnaddall' (without quotes) from a directory containing unversioned files
#
alias svnaddall="svn st | grep '^\?' | tr '^\?' ' ' | xargs svn add"
@dustinsenos
Copy link
Author

I don't claim to be a regex pro, I know there's a million ways to shave a yak, this currently works well for me in OS X 10.6+. Any suggestions on syntax (sed maybe?) would be greatly appreciated. Please use at your own risk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment