feat: pager args

This commit is contained in:
2023-10-23 19:28:44 -04:00
parent f18def50b4
commit 42a54aaec9

View File

@@ -3,13 +3,13 @@ function p () {
if [ -n "$pager" ]; then
if command -v "$pager" &>/dev/null; then
$PAGER
$PAGER "$@"
fi
else
if command -v less &>/dev/null; then
less -R
less -R "$@"
else
cat
cat "$@"
fi
fi
}