32 lines
331 B
Bash
32 lines
331 B
Bash
# change current directory to its parent
|
|
alias ..="\
|
|
cd \
|
|
.. \
|
|
"
|
|
|
|
# change current directory to its parent’s parent
|
|
alias ...="\
|
|
cd \
|
|
../.. \
|
|
"
|
|
|
|
# shorten alias
|
|
alias a="\
|
|
alias \
|
|
"
|
|
|
|
# swap directory (current ↔ previous)
|
|
alias sd="\
|
|
cd \
|
|
- \
|
|
"
|
|
|
|
# import source file
|
|
alias src="\
|
|
source \
|
|
"
|
|
|
|
# exit terminal
|
|
alias x="\
|
|
exit \
|
|
"
|