fzfmenu: handle dumb terminal as no terminal

This commit is contained in:
lassulus 2023-09-07 11:54:02 +02:00
parent 5e215d87e5
commit a2f58988f5

View File

@ -43,7 +43,7 @@ pkgs.writers.writeDashBin "fzfmenu" ''
set -efu set -efu
# Spawn terminal if called without one, like e.g. from a window manager. # Spawn terminal if called without one, like e.g. from a window manager.
if [ -z ''${TERM+x} ]; then if [ -z ''${TERM+x} ] || [ $TERM = dumb ]; then
exec 3<&0 exec 3<&0
exec 4>&1 exec 4>&1
export FZFMENU_INPUT_FD=3 export FZFMENU_INPUT_FD=3