Created
November 28, 2022 21:08
-
-
Save leath-dub/865d9af0233e8ea1b197b50d91d5d847 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cmd=$( ( IFS=":" | |
for _path in $PATH | |
do | |
echo $_path | |
done ) \ | |
| xargs -i find -L {} -executable -maxdepth 1 -mindepth 1 -type f -printf '%P\n' \ | |
| sort -u \ | |
| fzy ) | |
[ -n "$cmd" ] && setsid -f "$cmd" | |
# set keybind ( it does work with gnome terminal and alacritty ( just not in the same way ) | |
# $ st -c "fzl" -i -g 30x11 -e "/home/cathal/bin/fzl" & | |
# Also if your on a window manager change the properties of the "fzl" class to enable | |
# floating etc. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple fuzzy application launcher( thought id share as gist as I havent the time to setup my dotfiles in full yet )