Created
November 20, 2009 12:49
-
-
Save fxn/239479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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