feat(scripts): WIP - launcher to use with fzf and alacritty?
This commit is contained in:
parent
06f70c14cc
commit
6ce5b9bfcc
15
bin/launcher.sh
Normal file
15
bin/launcher.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# launcher
|
||||
#
|
||||
# TODO: toujours mettre des \n entre les résultats !
|
||||
|
||||
res=()
|
||||
|
||||
# Find all programs in $PATH.
|
||||
res+=$(echo -n "$PATH" | xargs -d: -I{} -r -- find -L {} -maxdepth 1 -mindepth 1 -type f -executable -printf '%P\n' 2>/dev/null)
|
||||
res+=$(echo -e "\ncoucou")
|
||||
|
||||
for resultat in "${res[@]}"; do
|
||||
echo "$resultat"
|
||||
done | fzf|sh
|
Loading…
Reference in New Issue
Block a user