Skip to content

Instantly share code, notes, and snippets.

@leath-dub
Created November 28, 2022 21:08
Show Gist options
  • Save leath-dub/865d9af0233e8ea1b197b50d91d5d847 to your computer and use it in GitHub Desktop.
Save leath-dub/865d9af0233e8ea1b197b50d91d5d847 to your computer and use it in GitHub Desktop.
#!/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.
@leath-dub
Copy link
Author

Simple fuzzy application launcher( thought id share as gist as I havent the time to setup my dotfiles in full yet )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment