From 585bdbd5198de5263155fe8183dd2cba54105285 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 27 Jul 2023 18:17:56 -0600 Subject: [PATCH] [zsh] Fix pager.sh --- dotfiles/lib/bin/pager.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 "$@"