2023-05-30 07:37:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ -e "$1" ]
|
|
|
|
then
|
|
|
|
root=$1
|
|
|
|
shift 1
|
|
|
|
else
|
|
|
|
root=$(pwd)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$*" ]
|
2023-06-01 13:23:13 +00:00
|
|
|
then find "$root" -maxdepth 1 -type d | fzf -1 -q "$*"
|
|
|
|
else find "$root" -maxdepth 1 -type d | fzf -1
|
2023-05-30 07:37:24 +00:00
|
|
|
fi
|