From d49b4e1e4a001393ec595b700df238057976a27a Mon Sep 17 00:00:00 2001 From: Maximilian Wolf <69987866+MaxWolf-01@users.noreply.github.com> Date: Sun, 3 Nov 2024 23:43:16 +0100 Subject: [PATCH] add some git aliases + .local_exports --- setup | 2 ++ zsh/aliases | 7 ++++++- zsh/exports | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/setup b/setup index 4b4a95d..b7aaa76 100755 --- a/setup +++ b/setup @@ -82,6 +82,8 @@ cli() { nvim + touch ~/.local_exports + ### remove bloat # screen reader sudo apt-get remove -y orca diff --git a/zsh/aliases b/zsh/aliases index e8714d8..93981bf 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -11,8 +11,13 @@ alias vim='nvim' alias g='git' alias gc='git commit' alias gp='git push' +alias gs='git switch' +alias gsc='git switch -c' +alias gpl='git pull' alias gst='git status' -alias gspp="git stash && git pull && git stash pop" +alias gcm='git commit -m' +alias gcmn='git commit --no-verify -m' +alias gspp='git stash && git pull && git stash pop' alias gacp="git add . && git commit -m 'update' && git push" alias ggraph='git log --graph --abbrev-commit --date=relative --pretty=format:"%C(auto)%h %s%n %C(yellow)by %C(blue)%an %C(magenta)<%ae> [%G?] %C(green)%ad%n %C(auto)%d%n"' alias gdiff='git diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r' # Remove `+` and `-` from start of diff lines; just rely upon color. diff --git a/zsh/exports b/zsh/exports index 03aa0a9..ee67c46 100644 --- a/zsh/exports +++ b/zsh/exports @@ -13,3 +13,6 @@ export PYTHONIOENCODING='UTF-8' export FZF_COMPLETION_TRIGGER='**' export HYDRA_FULL_ERROR=1 + +source ~/.local_exports +