nnn/user-scripts/fzy.sh

13 lines
269 B
Bash
Raw Normal View History

2019-01-03 17:35:51 +00:00
#!/usr/bin/env sh
2019-01-04 17:24:18 +00:00
# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open
2019-01-03 17:35:51 +00:00
#
# Shell: generic
# Author: Arun Prakash Jana
2019-01-04 17:24:18 +00:00
# bash, zsh
2019-01-03 17:35:51 +00:00
xdg-open $(find -type f | fzy) >/dev/null 2>&1
2019-01-04 17:24:18 +00:00
# fish
# xdg-open (find -type f | fzy) >/dev/null 2>&1