This commit is contained in:
pika 2025-05-17 20:14:10 +02:00
parent 37f011916a
commit d3d137a22b

View file

@ -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 "<file>" "<commitmessage>"` │
# │ .. or like `git add "<file>"` │
# ╰──────────────────────────────────────╯
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 &&