Don't pipe svn through $PAGER, if it isn't set

This commit is contained in:
crater2150 2021-05-20 17:35:34 +02:00
parent eb99b40aee
commit de89545cb0

View file

@ -191,14 +191,16 @@ cropdetect() {
# programming # programming
##############################################################################{{{ ##############################################################################{{{
svn() { if [[ -n $PAGER ]]; then
svn() {
case $1 in case $1 in
log|diff) log|diff)
command svn "$@" | $PAGER ;; command svn "$@" | $PAGER ;;
*) *)
command svn "$@" ;; command svn "$@" ;;
esac esac
} }
fi
alias gitv='vim "$(git rev-parse --git-dir)/index" -c "Gitv --all" -c tabonly' alias gitv='vim "$(git rev-parse --git-dir)/index" -c "Gitv --all" -c tabonly'