Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't clobber PWD in wd_show #139

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Conversation

kelbyers
Copy link
Contributor

@kelbyers kelbyers commented Oct 10, 2024

Resolves #114

use a local variable within wd_show to check if we are in a warp point directory or not

❯ wd list
 * All warp points:
control-deploy  ->  ~/git/ose-automation-puppet/control-deploy
          dope  ->  ~/git/one-thd/dope
       ls-base  ->  ~/git/one-thd/locksmith

V6YNJVV4QCMBP in ~/git
❯ wd dope

V6YNJVV4QCMBP in git/one-thd/dope
❯ wd show
 * 1 warp point(s) to current directory: dope

V6YNJVV4QCMBP in git/one-thd/dope
❯ cd ..

V6YNJVV4QCMBP in ~/git/one-thd
❯ wd show
 * No warp point to ~/git/one-thd

V6YNJVV4QCMBP in ~/git/one-thd
❯ echo $PWD
/Users/jxb2016/git/one-thd

@alpha-tango-kilo alpha-tango-kilo merged commit e37f808 into mfaerevaag:master Oct 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants