diff --git a/dotfiles/lib/bin/pager.sh b/dotfiles/lib/bin/pager.sh index db8c2282..3cbb9728 100755 --- a/dotfiles/lib/bin/pager.sh +++ b/dotfiles/lib/bin/pager.sh @@ -1,8 +1,12 @@ #!/usr/bin/env sh -if environment_variable_exists INSIDE_EMACS; then - emacsclient -n "$@" -else - less -FXr -fi -return 0 +function pager { + if environment_variable_exists INSIDE_EMACS; then + emacsclient -n "$@" + else + less -FXr + fi + return 0 +} + +pager "$@"