diff --git a/shell/alias/shell.sh b/shell/alias/shell.sh deleted file mode 100644 index 531b4b0..0000000 --- a/shell/alias/shell.sh +++ /dev/null @@ -1,32 +0,0 @@ -# shorten alias -a() { - alias \ - "${@}" -} - -# swap directory (current ↔ previous) -sd() { - cd \ - - || - return -} - -# exit terminal -x() { - exit \ - "${@}" -} - -# shellcheck disable=SC2154 -[ "${SH}" = "bash" ] || return - -# back - -# shellcheck disable=SC3033 -..() { - cd .. -} -# shellcheck disable=SC3033 -...() { - cd ../.. -} diff --git a/shell/shell.sh b/shell/shell.sh index c25ab55..bfb6b98 100644 --- a/shell/shell.sh +++ b/shell/shell.sh @@ -110,3 +110,34 @@ shell_setup() { rm --force --recursive "${file}" ln --symbolic "${ENV}" "${file}" } + +# shorten alias +a() { + alias \ + "${@}" +} + +# swap directory (current ↔ previous) +sd() { + cd \ + - || + return +} + +# exit terminal +x() { + exit \ + "${@}" +} + +# shellcheck disable=SC2154 +[ "${SH}" = "bash" ] || return + +# shellcheck disable=SC3033 +..() { + cd .. +} +# shellcheck disable=SC3033 +...() { + cd ../.. +}