m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

This adds an alternate fd-cd example. The functionality is the same, it just limits the directories shown by not including the sub-directories.

Robbie Smith
2017-04-11 20:55:54 -06:00
parent abc45eba3e
commit 010035f852

@@ -94,6 +94,16 @@ fd() {
}
```
```sh
# Another fd - cd into the selected directory
# This one differs from the above, by only showing the sub directories and not
showing the directories within those.
fd() {
DIR=`find * -maxdepth 0 -type d -print 2> /dev/null | fzf-tmux` \
&& cd "$DIR"
}
```
```sh
# fda - including hidden directories
fda() {