summaryrefslogtreecommitdiff
path: root/bin/common/fzfdirfile
diff options
context:
space:
mode:
Diffstat (limited to 'bin/common/fzfdirfile')
-rwxr-xr-xbin/common/fzfdirfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/common/fzfdirfile b/bin/common/fzfdirfile
new file mode 100755
index 0000000..df0e51a
--- /dev/null
+++ b/bin/common/fzfdirfile
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+dirname "$(find "${1:-$HOME}" -type f 2> /dev/null | fzf)"