Made pager.sh and editor.sh accesible from anywhere in the shell. Also made pager.sh smart in that it will use emacsclient when INSIDE_EMACS environment variable is set.
8 lines
115 B
Bash
Executable File
8 lines
115 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
if environment_variable_exists INSIDE_EMACS; then
|
|
emacs_pager "$@"
|
|
else
|
|
less -FXr
|
|
fi
|
|
return 0
|