mirror of
https://github.com/tedkulp/dotfiles
synced 2026-03-05 13:40:18 -05:00
feat: pager args
This commit is contained in:
@@ -3,13 +3,13 @@ function p () {
|
|||||||
|
|
||||||
if [ -n "$pager" ]; then
|
if [ -n "$pager" ]; then
|
||||||
if command -v "$pager" &>/dev/null; then
|
if command -v "$pager" &>/dev/null; then
|
||||||
$PAGER
|
$PAGER "$@"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if command -v less &>/dev/null; then
|
if command -v less &>/dev/null; then
|
||||||
less -R
|
less -R "$@"
|
||||||
else
|
else
|
||||||
cat
|
cat "$@"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user