- Copy files to
${HOME}/.rc
- add below line to
${HOME}/.bashrc
[[ -f "${HOME}/.rc/_init.sh" ]] && source "${HOME}/.rc/_init.sh"
Reload scripts to reflect changes in their code.
Usage:
h.reloadScripts
Edit and reload scripts.
Usage:
h.editScripts [SCRIPT_NAME]
List local and remote branches without remote prefix.
Usage:
g.listAllBranches
Filter all branches with a given pattern.
Usage:
g.filterBranches PATTERN
Same as above but accepts BRANCHES_LIMIT
.
Usage:
g.filterBranches PATTERN [BRANCHES_LIMIT=3]
Checkout a branch with a given pattern.
When more than one branch is found it will print count of them and a truncated list.
Usage:
g.checkoutBranch PATTERN [BRANCHES_LIMIT]