Skip to content

Instantly share code, notes, and snippets.

@leehambley
Forked from fxn/automatic_svn_paging.sh
Created November 20, 2009 13:35
Show Gist options
  • Save leehambley/239505 to your computer and use it in GitHub Desktop.
Save leehambley/239505 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