all repos — dotfiles @ 5351d6833635d341b38c1e322e03b3c18c77d39b

my *nix dotfiles

bash/.bashrc.d/90-aliases.bash (view raw)

 1ggp() {
 2    [[ "$1" == "-f" ]] && {
 3        git push "$(git remote show)" -f "$(git branch --show-current)"
 4    }
 5    git push "$(git remote show)" "$(git branch --show-current)"
 6}
 7
 8gpl() {
 9    git pull -r "$(git remote show)" "$(git branch --show-current)"
10}
11
12gpm() {
13    git pull -r origin master
14}
15
16gco() {
17    [[ "$1" == "" ]] && return 1
18
19    git rev-parse --verify "$1" &> /dev/null
20    if [ $? -eq 0 ]; then
21        git checkout "$1"
22    else
23        git checkout -b "$1"
24    fi
25}
26
27gaf() {
28    git status --short | grep "^ M\|^ D\|^\?\?" | fzy | awk '{ print $2 }' | xargs git add
29}