So the idea is to have an alternative of cd command with some usual shortcuts.
More explanations about installation, use and examples, available on the Bitbucket repository.
https://bitbucket.org/OPiMedia/gocd-bash/
P.-S.: This is the same command that I shared 2 weeks ago. I just renamed the command from go to gocd to avoid name conflict with the go compiler.
β¦2/2
I added -n and -q options.
-n just print target directory, without change working directory.
-q quiet, don't run ls at the end.
Examples:
$ gocd -nq ParSigmaOdd progs/
just print (even if this path doesn't exist) $HOME/data/git/current/parallel-sigma_odd-problem/progs/
$ cat $(gocd -nq ParSigmaOdd README.md)
is equivalent to run
$ cat $HOME/data/git/current/parallel-sigma_odd-problem/README.md
#gocd #gocdBash
https://bitbucket.org/OPiMedia/gocd-bash/