diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-04 20:28:12 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-04 20:28:12 +0530 |
| commit | 6676ba7c3a61f2e104217f7109c9e4463f506a87 (patch) | |
| tree | e30dddad9ce3ddab743cddae1137c2325e24ca55 /modules/desktop/application-launcher/fzf/launch.sh | |
| parent | 4c3c113d73e967c349637f5574d02eaa9ccbfc69 (diff) | |
| download | home-manager-config-6676ba7c3a61f2e104217f7109c9e4463f506a87.tar.gz home-manager-config-6676ba7c3a61f2e104217f7109c9e4463f506a87.zip | |
Fixed launch fzf applauncher script.
Diffstat (limited to 'modules/desktop/application-launcher/fzf/launch.sh')
| -rw-r--r-- | modules/desktop/application-launcher/fzf/launch.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/desktop/application-launcher/fzf/launch.sh b/modules/desktop/application-launcher/fzf/launch.sh index 9b20367..9e359f9 100644 --- a/modules/desktop/application-launcher/fzf/launch.sh +++ b/modules/desktop/application-launcher/fzf/launch.sh @@ -1,10 +1,9 @@ #!/bin/sh -selected_executable=$(for dir in $(echo "$PATH" | tr ':' ' '); do [ -d "$dir" ] && ls "$dir" 2>/dev/null | awk -F/ '{print $NF}'; done | sort -u | fzf --height=100% --border=none --layout=reverse --prompt " ") +selected_executable=$(for dir in $(echo "$PATH" | tr ':' ' '); do [ -d "$dir" ] && ls "$dir" 2>/dev/null | awk -F/ '{print $NF}'; done | sort -u | fzf --height=100% --border=none --layout=reverse --no-multi --prompt " ") if [[ -n "$selected_executable" ]]; then setsid "$selected_executable" >/dev/null 2>&1 & - disown - sleep + sleep 0.01 kill -9 $PPID fi |
