Skip to content

Commit

Permalink
Move simple alias from zsh to git
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jun 14, 2023
1 parent 0c53897 commit cbb4440
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .config/git/config
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
[alias]
fixup = commit --all --amend
empty = commit --allow-empty -m 'Add an empty commit'
current-branch = symbolic-ref --short HEAD
1 change: 0 additions & 1 deletion home/.aliases.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

alias git-switch-default='git checkout develop 2>/dev/null || git checkout development 2>/dev/null || git checkout main 2>/dev/null || git checkout trunk 2>/dev/null || git checkout master 2>/dev/null'
alias git-current-branch='git symbolic-ref --short HEAD'
alias git-remote-upsteram="git remote | grep -E '^upstream$'|| git remote | grep -E '^origin$'"
# https://github.com/kyanny/git-delete-merged-branches/pull/6
alias git-delete-merged-branches="git branch --merged | grep -vE '((^\*)|^ *(main|master|develop|development|trunk)$)' | xargs -I % git branch -d %"
Expand Down

0 comments on commit cbb4440

Please sign in to comment.