diff --git a/Examples.md b/Examples.md index 985eb0e..7f44e4e 100644 --- a/Examples.md +++ b/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() {