13 lines
300 B
Bash
13 lines
300 B
Bash
|
#!/usr/bin/sh
|
||
|
#
|
||
|
# fuzzel_find_file.sh
|
||
|
#
|
||
|
# Search for file and open it. Requires fuzzel and find.
|
||
|
|
||
|
pattern=$(fuzzel --dmenu --prompt "$ find . -type f ") || exit
|
||
|
selection=$(find . -type f -iname "$pattern" | fuzzel --dmenu --prompt "$ open ")
|
||
|
|
||
|
if [ -n "$selection" ]; then
|
||
|
exec open "$selection"
|
||
|
fi
|