sh/bash/alias/bash.sh

28 lines
291 B
Bash
Raw Normal View History

2023-05-09 20:02:34 +00:00
# change current directory to its parent
2023-05-14 14:38:54 +00:00
alias ..="\
2023-05-18 11:24:21 +00:00
cd \
.. \
"
2023-05-20 07:18:21 +00:00
# change current directory to its parent's parent
alias ...="\
cd \
../.. \
"
2023-05-18 11:24:21 +00:00
# swap directory (current ↔ previous)
alias sd="\
cd \
- \
2023-05-14 14:38:54 +00:00
"
# import source file
alias src="\
source \
"
2023-05-09 20:02:34 +00:00
# exit terminal
2023-05-14 14:38:54 +00:00
alias x="\
exit \
"