mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Merge pull request #1118 from N-R-K/xdgdefault
xdgdefault: make dmenu case-insensitive, fix style
This commit is contained in:
commit
23a806864f
|
@ -13,10 +13,10 @@
|
||||||
# set to 1 to enable GUI apps
|
# set to 1 to enable GUI apps
|
||||||
GUI="${GUI:-0}"
|
GUI="${GUI:-0}"
|
||||||
|
|
||||||
if [ "$GUI" -ne 0 ] && command -v dmenu >/dev/null 2>& 1; then
|
if [ "$GUI" -ne 0 ] && command -v dmenu > /dev/null 2>& 1; then
|
||||||
menu="dmenu -l 7"
|
menu="dmenu -i -l 7"
|
||||||
elif command -v fzf > /dev/null 2>& 1; then
|
elif command -v fzf > /dev/null 2>& 1; then
|
||||||
menu="fzf -e --tiebreak=begin"
|
menu="fzf -e --tiebreak=begin"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ] || [ -z "$menu" ] > /dev/null 2>& 1; then
|
if [ -z "$1" ] || [ -z "$menu" ] > /dev/null 2>& 1; then
|
||||||
|
|
Loading…
Reference in a new issue