Add find-dir script
This commit is contained in:
parent
46c40a9b56
commit
e75663c846
1 changed files with 14 additions and 0 deletions
14
bin/find-dir
Executable file
14
bin/find-dir
Executable 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
|
Loading…
Reference in a new issue