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

@@ -23,7 +23,7 @@ alias 8="pushd +8"
alias 9="pushd +9"
# Clone this location
alias pc="pushd \$(pwd)"
alias pc='pushd "${PWD}"'
# Push new location
alias pu="pushd"
@@ -73,7 +73,7 @@ G () {
example '$ G ..'
group 'dirs'
cd "${1:-$(pwd)}" ;
cd "${1:-${PWD}}" ;
}
S () {