Add find-dir script

This commit is contained in:
Talia 2023-05-30 09:37:24 +02:00
parent 46c40a9b56
commit e75663c846
1 changed files with 14 additions and 0 deletions

14
bin/find-dir Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
if [ -e "$1" ]
then
root=$1
shift 1
else
root=$(pwd)
fi
if [ -n "$*" ]
then find "$root" -maxdepth 1 -type d | fzf -q "$*"
else find "$root" -maxdepth 1 -type d | fzf
fi