sh/shell/alias/bash.sh

33 lines
326 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 \
.. \
"
2024-11-12 08:43:56 +00:00
# change current directory to its parent’s parent
2023-05-20 07:18:21 +00:00
alias ...="\
cd \
../.. \
"
2024-02-28 09:58:41 +00:00
# shorten alias
alias a="\
alias \
"
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="\
2024-11-16 03:45:44 +00:00
. \
2023-05-14 14:38:54 +00:00
"
2023-05-09 20:02:34 +00:00
# exit terminal
2023-05-14 14:38:54 +00:00
alias x="\
exit \
"