Also check for empty $PAGER/$VISUAL/$EDITOR in i3-sensible-{editor,pager}
This commit is contained in:
parent
eae4347ea3
commit
2a5db98419
|
@ -4,8 +4,8 @@
|
||||||
#
|
#
|
||||||
# Distributions/packagers can enhance this script with a
|
# Distributions/packagers can enhance this script with a
|
||||||
# distribution-specific mechanism to find the preferred pager.
|
# distribution-specific mechanism to find the preferred pager.
|
||||||
which $VISUAL >/dev/null && exec $VISUAL "$@"
|
[ -n "$VISUAL" ] && which $VISUAL >/dev/null && exec $VISUAL "$@"
|
||||||
which $EDITOR >/dev/null && exec $EDITOR "$@"
|
[ -n "$EDITOR" ] && which $EDITOR >/dev/null && exec $EDITOR "$@"
|
||||||
|
|
||||||
# Hopefully one of these is installed (no flamewars about preference please!):
|
# Hopefully one of these is installed (no flamewars about preference please!):
|
||||||
which nano >/dev/null && exec nano "$@"
|
which nano >/dev/null && exec nano "$@"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#
|
#
|
||||||
# Distributions/packagers can enhance this script with a
|
# Distributions/packagers can enhance this script with a
|
||||||
# distribution-specific mechanism to find the preferred pager.
|
# distribution-specific mechanism to find the preferred pager.
|
||||||
which $PAGER >/dev/null && exec $PAGER "$@"
|
[ -n "$PAGER" ] && which $PAGER >/dev/null && exec $PAGER "$@"
|
||||||
|
|
||||||
# Hopefully one of these is installed:
|
# Hopefully one of these is installed:
|
||||||
which most >/dev/null && exec most "$@"
|
which most >/dev/null && exec most "$@"
|
||||||
|
|
Loading…
Reference in New Issue