Closed zupolgec closed 8 months ago
Given .bashrc / .zshrc files are normally stored in the home fodler (~) folder, the $PWD variable becomes ~ even if the alias is called from another folder. Wrapping the alias command in single quotes avoids this premature expansion of the variable.
.bashrc
.zshrc
~
$PWD
Given
.bashrc
/.zshrc
files are normally stored in the home fodler (~
) folder, the$PWD
variable becomes~
even if the alias is called from another folder. Wrapping the alias command in single quotes avoids this premature expansion of the variable.