nnn/user-scripts/fzy.sh

13 lines
269 B
Bash
Raw Normal View History

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