29 lines
288 B
1
# shorten alias
2
a() {
3
alias \
4
"${@}"
5
}
6
7
# swap directory (current ↔ previous)
8
sd() {
9
cd \
10
- ||
11
return
12
}
13
14
# exit terminal
15
x() {
16
exit \
17
"${@}"
18
}
19
20
[ "${RWX_SHELL}" = "bash" ] || return
21
22
# shellcheck disable=SC3033
23
..() {
24
cd ..
25
}
26
# shellcheck disable=SC3033
27
...() {
28
cd ../..
29
}
30