aboutsummaryrefslogtreecommitdiffstats
path: root/user-scripts/fzy.sh
blob: ba8cfc9d1198a9e2f662bd110eac5b83f58d9362 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env sh

# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open
#
# Shell: generic
# Author: Arun Prakash Jana

# bash, zsh
xdg-open $(find -type f | fzy) >/dev/null 2>&1

# fish
# xdg-open (find -type f | fzy) >/dev/null 2>&1