ghq.rootが ~/src だとすると、これで同じことができます。
find ~/src/github.com -follow -maxdepth 2 -mindepth 2 -type d
結果
$ find ~/src/github.com -follow -maxdepth 2 -mindepth 2 -type d
/Users/DQNEO/src/github.com/deyunanhai/tupai.js
/Users/DQNEO/src/github.com/dietcake/dietcake
/Users/DQNEO/src/github.com/DQNEO/fluent-logger-php
/Users/DQNEO/src/github.com/DQNEO/git-delete-remote-merged-branch
/Users/DQNEO/src/github.com/DQNEO/memo
/Users/DQNEO/src/github.com/DQNEO/minigit
/Users/DQNEO/src/github.com/DQNEO/myelectron
これをpecoに食わせるといい感じになりそうです。
find -follow
は何?
-followをつけるとシンボリックリンクもリストアップしてくれます。
ghq listはシンボリックリンクをリストアップしてくれないの?
下記記事によるとghq v0.7.1でなおったと書いてあるのですが、私の環境だとなぜかシンボリックリンクを拾ってくれませんでした。
http://motemen.hatenablog.com/entry/2015/08/ghq-v07
(それ以上深追いはしてない)