2024-02-28 09:58:41 +00:00
|
|
|
# shorten alias
|
2024-11-16 13:58:58 +00:00
|
|
|
a() {
|
|
|
|
alias \
|
|
|
|
"${@}"
|
|
|
|
}
|
2024-02-28 09:58:41 +00:00
|
|
|
|
2023-05-18 11:24:21 +00:00
|
|
|
# swap directory (current ↔ previous)
|
2024-11-16 13:58:58 +00:00
|
|
|
sd() {
|
|
|
|
cd - || return
|
|
|
|
}
|
2023-05-09 20:02:34 +00:00
|
|
|
|
|
|
|
# exit terminal
|
2024-11-16 13:58:58 +00:00
|
|
|
x() {
|
|
|
|
exit \
|
|
|
|
"${@}"
|
|
|
|
}
|
|
|
|
|
|
|
|
# back
|
|
|
|
|
|
|
|
# shellcheck disable=SC3033
|
|
|
|
..() {
|
|
|
|
cd ..
|
|
|
|
}
|
|
|
|
# shellcheck disable=SC3033
|
|
|
|
...() {
|
|
|
|
cd ../..
|
|
|
|
}
|