Use ${PWD} instead of $(pwd)

Don't subshell when there's a shell parameter for it.
This commit is contained in:
John D Pell
2021-09-18 13:15:13 -07:00
parent 1f6d6aa147
commit 5fc418e479
4 changed files with 5 additions and 5 deletions

View File

@@ -449,7 +449,7 @@ _bash-it-restart() {
_about 'restarts the shell in order to fully reload it'
_group 'lib'
saved_pwd=$(pwd)
saved_pwd="${PWD}"
case $OSTYPE in
darwin*)