Closed kirillsalykin closed 4 years ago
closes #166
This PR add support for cd -.
cd -
Implementation based on https://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html.
In case if $OLDPWD is not set up - ~ used. iTerm2 also uses same approach (with ~ as default), but builtin terminal doesn't. (I am on mac os)
$OLDPWD
~
iTerm2
terminal
For me iTerm2 behavior feels more natural, but maybe you have other thoughts?
Thanks.
closes #166
This PR add support for
cd -
.Implementation based on https://pubs.opengroup.org/onlinepubs/9699919799/utilities/cd.html.
In case if
$OLDPWD
is not set up -~
used.iTerm2
also uses same approach (with~
as default), but builtinterminal
doesn't. (I am on mac os)For me
iTerm2
behavior feels more natural, but maybe you have other thoughts?Thanks.