dotfiles

Linux and macOS dotfiles
git clone https://github.com/michaelneuper/dotfiles.git
README | Files | Log | Refs

commit 383ca2a1c51344b542810e4e5543ca5f1d6d3ed0
parent 8a5546909db1922afa831f49266c665ebd99bd6f
Author: michaelneuper <michael@michaelneuper.com>
Date:   Wed,  9 Jul 2025 17:00:20 +0200

add git aliases

Diffstat:
M.zshrc | 17++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/.zshrc b/.zshrc @@ -42,10 +42,25 @@ export LIBGS="/opt/homebrew/lib/libgs.dylib" # fix LaTeX rendering in emacs # Aliases if command -v bat >/dev/null 2>&1; then - alias cat="bat --plain --theme=gruvbox-dark" fi alias v="vim" alias vim="emacs -nw" +if command -v git-st >/dev/null 2>&1; then + alias gs="git-st" +else + alias gs="git status --short --branch" +fi + +alias gst="git status" +alias ga="git add" +alias gb="git branch" +alias gbd="git branch -D" +alias gcb="git checkout -b" +alias gch="git checkout" +alias gc="git commit -m" +alias gp="git pull" +alias gpu="git push" +alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"