wip
This commit is contained in:
parent
37f011916a
commit
d3d137a22b
1 changed files with 11 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
# ╭──────────╮
|
# ╭──────────╮
|
||||||
# │ defaults │
|
# │ defaults │
|
||||||
# ╰──────────╯
|
# ╰──────────╯
|
||||||
|
alias sudo="sudo -E"
|
||||||
alias please="sudo"
|
alias please="sudo"
|
||||||
|
|
||||||
# ─< easier dir up >────────────────────────────────────────────────────────────────────────
|
# ─< easier dir up >────────────────────────────────────────────────────────────────────────
|
||||||
|
@ -14,6 +15,7 @@ if command_exists curl; then
|
||||||
# ─< linutil >────────────────────────────────────────────────────────────────────────────
|
# ─< linutil >────────────────────────────────────────────────────────────────────────────
|
||||||
alias linutil="curl -fsSL https://christitus.com/linux | sh"
|
alias linutil="curl -fsSL https://christitus.com/linux | sh"
|
||||||
alias "linutil-dev"="curl -fsSL https://christitus.com/linuxdev | sh"
|
alias "linutil-dev"="curl -fsSL https://christitus.com/linuxdev | sh"
|
||||||
|
|
||||||
# ─< weather >──────────────────────────────────────────────────────────────────────────────
|
# ─< weather >──────────────────────────────────────────────────────────────────────────────
|
||||||
alias www="curl wttr.in/Ulm"
|
alias www="curl wttr.in/Ulm"
|
||||||
else
|
else
|
||||||
|
@ -363,13 +365,18 @@ __git__() {
|
||||||
alias gcm="git commit -m"
|
alias gcm="git commit -m"
|
||||||
alias gpu="git push --recurse-submodule=on-demand"
|
alias gpu="git push --recurse-submodule=on-demand"
|
||||||
|
|
||||||
|
# ╭──────────────────────────────────────╮
|
||||||
|
# │ git add with commit like.. │
|
||||||
|
# │ `git add "<file>" "<commitmessage>"` │
|
||||||
|
# │ .. or like `git add "<file>"` │
|
||||||
|
# ╰──────────────────────────────────────╯
|
||||||
ga() {
|
ga() {
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
git diff ${1:-.}
|
git diff ${1:-.}
|
||||||
git add ${1:-.}
|
git add ${1:-.}
|
||||||
git commit -m "$2"
|
git commit -m "$2"
|
||||||
else
|
else
|
||||||
gd ${1:-.}
|
git diff ${1:-.}
|
||||||
git add ${1:-.}
|
git add ${1:-.}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -382,6 +389,7 @@ __git__() {
|
||||||
git clone --depth=1 "https://github.com/$1" "$2"
|
git clone --depth=1 "https://github.com/$1" "$2"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
gck() {
|
gck() {
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1"
|
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"
|
git clone --recurse-submodules --depth=1 "https://git.k4li.de/$1" "$2"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
gcs() {
|
gcs() {
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1"
|
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"
|
git clone --recurse-submodules --depth=1 "git@git.k4li.de:$1" "$2"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
gsu() {
|
gsu() {
|
||||||
echo "${CYAN}Updating submodules recursively with -> ${YELLOW}${BOLD}git submodule update --init --recursive${NC}"
|
echo "${CYAN}Updating submodules recursively with -> ${YELLOW}${BOLD}git submodule update --init --recursive${NC}"
|
||||||
git submodule update --init --recursive &&
|
git submodule update --init --recursive &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue