contrib: use less -f
in NM-log to avoid prompt for non-text input
This commit is contained in:
@@ -73,11 +73,11 @@ NM-log() {
|
||||
else
|
||||
a="${1--}"
|
||||
shift
|
||||
/usr/bin/less "$a" "$@"
|
||||
/usr/bin/less -f "$a" "$@"
|
||||
fi
|
||||
) | \
|
||||
NM_LOG_GREP="$NM_LOG_GREP" NM-colorize | \
|
||||
LESS=FRSXM less -R --shift=5
|
||||
LESS=FRSXM less -f -R --shift=5
|
||||
}
|
||||
|
||||
if [[ "$NM_not_sourced" != "" ]]; then
|
||||
|
Reference in New Issue
Block a user