From d3d137a22bf352de190d0411a658d2e54fb13431 Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 17 May 2025 20:14:10 +0200 Subject: [PATCH] wip --- .zsh/.aliases.zsh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.zsh/.aliases.zsh b/.zsh/.aliases.zsh index ffe8297..252ef6e 100644 --- a/.zsh/.aliases.zsh +++ b/.zsh/.aliases.zsh @@ -2,6 +2,7 @@ # ╭──────────╮ # │ defaults │ # ╰──────────╯ +alias sudo="sudo -E" alias please="sudo" # ─< easier dir up >──────────────────────────────────────────────────────────────────────── @@ -14,6 +15,7 @@ if command_exists curl; then # ─< linutil >──────────────────────────────────────────────────────────────────────────── alias linutil="curl -fsSL https://christitus.com/linux | sh" alias "linutil-dev"="curl -fsSL https://christitus.com/linuxdev | sh" + # ─< weather >────────────────────────────────────────────────────────────────────────────── alias www="curl wttr.in/Ulm" else @@ -363,13 +365,18 @@ __git__() { alias gcm="git commit -m" alias gpu="git push --recurse-submodule=on-demand" + # ╭──────────────────────────────────────╮ + # │ git add with commit like.. │ + # │ `git add "" ""` │ + # │ .. or like `git add ""` │ + # ╰──────────────────────────────────────╯ ga() { if [ -n "$2" ]; then git diff ${1:-.} git add ${1:-.} git commit -m "$2" else - gd ${1:-.} + git diff ${1:-.} git add ${1:-.} fi } @@ -382,6 +389,7 @@ __git__() { git clone --depth=1 "https://github.com/$1" "$2" fi } + gck() { if [ -z "$2" ]; then git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1" @@ -389,6 +397,7 @@ __git__() { git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1" "$2" fi } + gcs() { if [ -z "$2" ]; then git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1" @@ -396,6 +405,7 @@ __git__() { git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1" "$2" fi } + gsu() { echo "${CYAN}Updating submodules recursively with -> ${YELLOW}${BOLD}git submodule update --init --recursive${NC}" git submodule update --init --recursive &&