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

2
themes/powerturk/powerturk.theme.bash Normal file → Executable file
View File

@@ -43,7 +43,7 @@ _swd(){
begin="" # The unshortened beginning of the path.
shortbegin="" # The shortened beginning of the path.
current="" # The section of the path we're currently working on.
end="${2:-$(pwd)}/" # The unmodified rest of the path.
end="${2:-${PWD}}/" # The unmodified rest of the path.
if [[ "$end" =~ "$HOME" ]]; then
INHOME=1