-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4got.plugin.sh
More file actions
22 lines (18 loc) · 776 Bytes
/
4got.plugin.sh
File metadata and controls
22 lines (18 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 4GOT - utils with git commands that you forgot
# @name 4got
# @brief If you forget rarely used git commands, just use the `4got<TAB>` autocomplete
FOURGOT_FUNCTIONS=("backmerge" "basename" "branch.name" "branch.rename" "branch.prune" "branch.stash" "branches.merged.delete" "branches.old" "checkout" "duplicate" "name" "outside" "path" "release" "update")
FOURGOT_COMPLETIONS=()
for function in "${FOURGOT_FUNCTIONS[@]}"
do source "./bin/${function}/${function}.sh"
done
# TODO: probably move into readme
alias gp='4got.path'
alias gbn='4got.branch.name'
alias gbrn='4got.branch.rename'
alias gbmd='4got.branches.merged.delete'
alias gco='4got.checkout'
alias co='4got.checkout'
alias gcob='4got.branch.stash'
alias cob='4got.branch.stash'
alias gcli='4got.clone.npm'