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
case $1 in svn() {
log|diff) case $1 in
command svn "$@" | $PAGER ;; log|diff)
*) command svn "$@" | $PAGER ;;
command svn "$@" ;; *)
esac command svn "$@" ;;
} 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'