Browse files

Set PAGER to less if not set for psql mode

  • Loading branch information...
1 parent 6ea0878 commit a8685bb2e4cb9ef027f4168b4ab71263349215f5 @tabletcorry committed Jul 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 modes/psql.sh
View
3 modes/psql.sh
@@ -10,5 +10,8 @@ function haxby::modes::help::psql {
}
function haxby::modes::psql {
+ if [ -z "$PAGER" ]; then
+ export PAGER=less
+ fi
psql $@
}

0 comments on commit a8685bb

Please sign in to comment.