From 57caa424e6575a8908d2815545af414484f4d2ef Mon Sep 17 00:00:00 2001 From: bretello Date: Thu, 12 Jan 2023 12:46:09 +0100 Subject: [PATCH] zsh: move git aliases to its own file, add glsu (git ls untracked) --- aliases/aliases.zsh | 8 -------- aliases/git.zsh | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 aliases/git.zsh diff --git a/aliases/aliases.zsh b/aliases/aliases.zsh index 4177022..f8011c1 100755 --- a/aliases/aliases.zsh +++ b/aliases/aliases.zsh @@ -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 diff --git a/aliases/git.zsh b/aliases/git.zsh new file mode 100644 index 0000000..8e8f205 --- /dev/null +++ b/aliases/git.zsh @@ -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'