about summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-29 16:39:25 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-29 16:39:25 +0100
commitaae9f379e28438a90031c8add13bae6263b19ae9 (patch)
tree23bc821b09aa88f84f6d3deedc5f0f985b493351 /modules
parentfix(modules/lf): Retry connecting to the server (diff)
downloadnixos-config-aae9f379e28438a90031c8add13bae6263b19ae9.tar.gz
nixos-config-aae9f379e28438a90031c8add13bae6263b19ae9.zip
fix(modules/lf/cmds/set_clipboard_path): Provide feedback to the user
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh b/modules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh
index 460eeedb..ff5f3c01 100755
--- a/modules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh
+++ b/modules/by-name/lf/lf/commands/scripts/set_clipboard_path.sh
@@ -18,6 +18,9 @@ elif [ -n "$f" ]; then
     echo "$f" | wl-copy --trim-newline
 else
     lf -remote "send $id echo 'No file selected.'"
+    exit 1
 fi
 
+lf -remote "send $id echo 'Path copied'"
+
 # vim: ft=sh