mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -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.
10
Examples.md
10
Examples.md
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user