summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-09-07 11:54:02 +0200
committerlassulus <git@lassul.us>2023-09-07 11:54:02 +0200
commita2f58988f5c35c5782dc75c2c6c8635cb82339a5 (patch)
tree5aadf82c2b786c85a62e91b5e0884cda670f0ce0
parent5e215d87e53f97e73247c0d415a416cade9f9328 (diff)
fzfmenu: handle dumb terminal as no terminal
-rw-r--r--krebs/5pkgs/simple/fzfmenu/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/5pkgs/simple/fzfmenu/default.nix b/krebs/5pkgs/simple/fzfmenu/default.nix
index eb2441330..030c1b1b1 100644
--- a/krebs/5pkgs/simple/fzfmenu/default.nix
+++ b/krebs/5pkgs/simple/fzfmenu/default.nix
@@ -43,7 +43,7 @@ pkgs.writers.writeDashBin "fzfmenu" ''
set -efu
# 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 4>&1
export FZFMENU_INPUT_FD=3