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 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user