Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set PAGER to less if not set for psql mode

  • Loading branch information...
commit a8685bb2e4cb9ef027f4168b4ab71263349215f5 1 parent 6ea0878
@tabletcorry authored
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 $@
}
Please sign in to comment.
Something went wrong with that request. Please try again.