You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I switch to my projects directory with the 's' (by default it is aliased to 'c', but it's overwritten to be the old default 's' in my installs, check your git_index_alias), my $OLDPWD is overwritten, so cd - does not work as expected. The easiest way for me to show this is with an example:
tylevine@TYLEVINE-M-X247:~/src/kafka ((0.9.0.1)) $ pwd
/Users/tylevine/src/kafka
tylevine@TYLEVINE-M-X247:~/src/kafka ((0.9.0.1)) $ s
tylevine@TYLEVINE-M-X247:~/src $ echo $OLDPWD
/Users/tylevine/src
tylevine@TYLEVINE-M-X247:~/src $ cd -
/Users/tylevine/src
Here I'm in the kafka subdirectory, I want to change to my projects directory and then go back to the kafka directory, but my $OLDPWD is set to ~/src instead of ~/src/kafka, so I don't actually go anywhere.
The text was updated successfully, but these errors were encountered:
When I switch to my projects directory with the 's' (by default it is aliased to 'c', but it's overwritten to be the old default 's' in my installs, check your git_index_alias), my $OLDPWD is overwritten, so cd - does not work as expected. The easiest way for me to show this is with an example:
Here I'm in the kafka subdirectory, I want to change to my projects directory and then go back to the kafka directory, but my $OLDPWD is set to ~/src instead of ~/src/kafka, so I don't actually go anywhere.
The text was updated successfully, but these errors were encountered: