Permalink
Browse files

call less -X to stop the screen from clearing.

  • Loading branch information...
1 parent 0403d38 commit 32fce5825b43fa560e17214318f0aa983072c52f @wayneeseguin wayneeseguin committed Nov 15, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 scripts/cli
  2. +1 −1 scripts/help
  3. +1 −1 scripts/list
View
2 scripts/cli
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-__rvm_usage() { ${PAGER:-less} "${rvm_path:-$HOME/.rvm}/README" ; }
+__rvm_usage() { ${PAGER:-"less -X"} "${rvm_path:-$HOME/.rvm}/README" ; }
__rvm_run_script()
{
View
2 scripts/help
@@ -15,7 +15,7 @@ args=(${args[@]})
action="${args[$array_start]}"
args[$__array_start]=""
args=(${args[@]})
-pager="${PAGER:-less}"
+pager="${PAGER:-"less -X"}"
if [[ -n "$command" && -s "${rvm_help_path}/${command}" ]] ; then
View
2 scripts/list
@@ -204,7 +204,7 @@ list_known()
else
- ${PAGER:-less} "$rvm_path/config/known"
+ ${PAGER:-"less -X"} "$rvm_path/config/known"
fi

0 comments on commit 32fce58

Please sign in to comment.