sh_shell
This commit is contained in:
parent
07483cdadf
commit
9da45266c4
3 changed files with 32 additions and 32 deletions
30
sh/alias/shell.sh
Normal file
30
sh/alias/shell.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
# shorten alias
|
||||
a() {
|
||||
alias \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# swap directory (current ↔ previous)
|
||||
sd() {
|
||||
cd \
|
||||
- ||
|
||||
return
|
||||
}
|
||||
|
||||
# exit terminal
|
||||
x() {
|
||||
exit \
|
||||
"${@}"
|
||||
}
|
||||
|
||||
# shellcheck disable=SC2154
|
||||
[ "${SH_SHELL}" = "bash" ] || return
|
||||
|
||||
# shellcheck disable=SC3033
|
||||
..() {
|
||||
cd ..
|
||||
}
|
||||
# shellcheck disable=SC3033
|
||||
...() {
|
||||
cd ../..
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue