This commit is contained in:
Marc Beninca 2024-11-19 16:22:07 +01:00
parent 07483cdadf
commit 9da45266c4
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 32 additions and 32 deletions

30
sh/alias/shell.sh Normal file
View file

@ -0,0 +1,30 @@
# shorten alias
a() {
alias \
"${@}"
}
# swap directory (current ↔ previous)
sd() {
cd \
- ||
return
}
# exit terminal
x() {
exit \
"${@}"
}
# shellcheck disable=SC2154
[ "${SH_SHELL}" = "bash" ] || return
# shellcheck disable=SC3033
..() {
cd ..
}
# shellcheck disable=SC3033
...() {
cd ../..
}