forked from colonelpanic/dotfiles
[zsh] Fix pager.sh
This commit is contained in:
parent
031616e09e
commit
585bdbd519
@ -1,8 +1,12 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if environment_variable_exists INSIDE_EMACS; then
|
function pager {
|
||||||
emacsclient -n "$@"
|
if environment_variable_exists INSIDE_EMACS; then
|
||||||
else
|
emacsclient -n "$@"
|
||||||
less -FXr
|
else
|
||||||
fi
|
less -FXr
|
||||||
return 0
|
fi
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
pager "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user