Skip to content

Instantly share code, notes, and snippets.

@fxn
Created November 20, 2009 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fxn/239479 to your computer and use it in GitHub Desktop.
Save fxn/239479 to your computer and use it in GitHub Desktop.
# Throw this into your bash init file for automatic
# paging of a few svn commands, a la git.
SVN_PATH=`which svn`
function svn
{
case $1 in
cat | diff | help | list | log )
if test -t 1
then
$SVN_PATH "$@" | less
else
$SVN_PATH "$@"
fi
;;
* ) $SVN_PATH "$@" ;;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment