mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
zsh: move git aliases to its own file, add glsu (git ls untracked)
This commit is contained in:
parent
fd05f479d9
commit
57caa424e6
|
@ -60,14 +60,6 @@ alias stress='yes >> /dev/null'
|
||||||
# define ssh without controlmaster
|
# define ssh without controlmaster
|
||||||
alias ssh1="ssh -o ControlMaster=no"
|
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
|
alias watcha='watch ' # note the space after watch. This makes watch work with aliases
|
||||||
|
|
||||||
# A short version of docker ps
|
# A short version of docker ps
|
||||||
|
|
8
aliases/git.zsh
Normal file
8
aliases/git.zsh
Normal 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'
|
Loading…
Reference in New Issue
Block a user