Making Go easier

This is just a simple thing, but it makes working in Go’s source tree way easier. Particularly since I use repos from three different sites that start with “git.”

In zsh there’s a thing called cdpath with zsh will use to complete a cd command. For the longest time mine was set to cdpath=(~ ~/src) so if I typed cd foo and there wasn’t a foo in the current directory zsh would go look in ~ and then in ~/src.

Now it’s set to cdpath=(~ ~/src ~/src/go/src/*) which means if I want to work on cashier I can just type cd nsheridan/cashier from anywhere and I’m there.