This commit is contained in:
Marc Beninca 2024-11-17 17:36:25 +01:00
parent 049eaaff6f
commit 9b05b663da
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 31 additions and 32 deletions

View file

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

View file

@ -110,3 +110,34 @@ shell_setup() {
rm --force --recursive "${file}" rm --force --recursive "${file}"
ln --symbolic "${ENV}" "${file}" ln --symbolic "${ENV}" "${file}"
} }
# shorten alias
a() {
alias \
"${@}"
}
# swap directory (current ↔ previous)
sd() {
cd \
- ||
return
}
# exit terminal
x() {
exit \
"${@}"
}
# shellcheck disable=SC2154
[ "${SH}" = "bash" ] || return
# shellcheck disable=SC3033
..() {
cd ..
}
# shellcheck disable=SC3033
...() {
cd ../..
}