Skip to content

Commit

Permalink
Fix up git bash aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriadrake committed Aug 22, 2020
1 parent 44a0f09 commit 56b2b8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
test -f ~/.git-completion.bash && . $_

if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
9 changes: 9 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,19 @@ alias weather='curl wttr.in/?0'
alias wget='wget -c'
alias tree="tree -aI 'test*|.git|node_modules|resources'"

if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash

# Add git completion to aliases
__git_complete goto _git_checkout
fi

alias gcom='git commit'
alias gsup='git status'
alias goto='git checkout'
alias branches='git branch -v'
alias firewood='for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done'
alias remotes='git remote -v'

alias pip='pip3'
alias pym='python3 manage.py'
Expand Down

0 comments on commit 56b2b8b

Please sign in to comment.