Skip to content

Loading…

Less as default #859

Closed
wants to merge 1 commit into from

2 participants

@ai
ai commented

Clean Ubuntu 10.10 hasn’t $PAGER and $MANPAGER variables, so bundle help will use more. more is confused for new users, because it have different controls and less is more standard (when I exec man ls it will use less).
So, I think, it’s better to use less. If some OS didn’t have less, I can add detection by whereis and use less only if it in system.

@josephholsten

Great idea! Patch works fine, but I'd like the whereis detection before it's committed.

@ai
ai commented

Use less as default help pager

Closed by 64be9d6

@leobessa leobessa pushed a commit that referenced this pull request
@ai ai Use less as default help pager
Closes #859
64be9d6
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 18, 2010
  1. @ai

    Use less as default help pager

    ai committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/cli.rb
View
2 lib/bundler/cli.rb
@@ -45,7 +45,7 @@ def help(cli = nil)
if have_groff? && root !~ %r{^file:/.+!/META-INF/jruby.home/.+}
groff = "groff -Wall -mtty-char -mandoc -Tascii"
- pager = ENV['MANPAGER'] || ENV['PAGER'] || 'more'
+ pager = ENV['MANPAGER'] || ENV['PAGER'] || 'less'
Kernel.exec "#{groff} #{root}/#{command} | #{pager}"
else
Something went wrong with that request. Please try again.