1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-21 11:01:31 +01:00

zsh: move git aliases to its own file, add glsu (git ls untracked)

This commit is contained in:
bretello 2023-01-12 12:46:09 +01:00
parent fd05f479d9
commit 57caa424e6
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
2 changed files with 8 additions and 8 deletions

View File

@ -60,14 +60,6 @@ alias stress='yes >> /dev/null'
# define ssh without controlmaster
alias ssh1="ssh -o ControlMaster=no"
# git: useful_stuff
alias git-sort-branches-by-date="git for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'"
alias gswr="git-switch-recent-branch"
alias gl5='git log -n 5'
alias gs='git status'
alias gcfx='git-fixup'
alias gls="git log --pretty=oneline --abbrev-commit" # gls: Git Log Short
alias watcha='watch ' # note the space after watch. This makes watch work with aliases
# A short version of docker ps

8
aliases/git.zsh Normal file
View File

@ -0,0 +1,8 @@
# git: useful_stuff
alias git-sort-branches-by-date="git for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'"
alias gswr="git-switch-recent-branch" # defined in functions/git.zsh
alias gl5='git log -n 5'
alias gs='git status'
alias gcfx='git-fixup'
alias gls="git log --pretty=oneline --abbrev-commit" # gls: Git Log Short
alias glsu='git ls-files --others --exclude-standard'