Last active
June 2, 2021 21:33
-
-
Save qwinters/da4be186799d4a6d5d8e32cb24c60183 to your computer and use it in GitHub Desktop.
GHQ that auto-saves repos to ~/.ghqrepos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function better_ghq() { | |
ghq $@ | |
{ ghq list ; cat ~/.ghqrepos } | sort | uniq -u > ~/.ghqrepos | |
} | |
alias Ghq="\\ghq" | |
alias ghq=better_ghq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment