2024-02-28 10:58:41 +01:00
|
|
|
# shorten alias
|
2024-11-16 14:58:58 +01:00
|
|
|
a() {
|
|
|
|
alias \
|
|
|
|
"${@}"
|
|
|
|
}
|
2024-02-28 10:58:41 +01:00
|
|
|
|
2023-05-18 13:24:21 +02:00
|
|
|
# swap directory (current ↔ previous)
|
2024-11-16 14:58:58 +01:00
|
|
|
sd() {
|
2024-11-16 15:02:40 +01:00
|
|
|
cd \
|
|
|
|
- ||
|
|
|
|
return
|
2024-11-16 14:58:58 +01:00
|
|
|
}
|
2023-05-09 22:02:34 +02:00
|
|
|
|
|
|
|
# exit terminal
|
2024-11-16 14:58:58 +01:00
|
|
|
x() {
|
|
|
|
exit \
|
|
|
|
"${@}"
|
|
|
|
}
|
|
|
|
|
2024-11-16 16:37:04 +01:00
|
|
|
# shellcheck disable=SC2154
|
|
|
|
[ "${SH}" = "bash" ] || return
|
|
|
|
|
2024-11-16 14:58:58 +01:00
|
|
|
# back
|
|
|
|
|
|
|
|
# shellcheck disable=SC3033
|
|
|
|
..() {
|
|
|
|
cd ..
|
|
|
|
}
|
|
|
|
# shellcheck disable=SC3033
|
|
|
|
...() {
|
|
|
|
cd ../..
|
|
|
|
}
|