booky2's comments

booky2 | 5 years ago | on: Behold z, the unsung jewel that rethinks shell navigation

I use 'cz' which is like 'cd' but for git workspaces only. Uses fzf to present list of matches.

bash source:

cz-index () { sudo find -L ~/work -type d -name '.git' | sed 's;/.git$;;' | sort > ~/git-dirs.txt }

cz () { cd "$(cat ~/git-dirs.txt | fzf --tiebreak=begin --exact -i -q $1)" }

page 1