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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you change the directory of the parent process? #53

Closed
isshe opened this issue Mar 10, 2020 · 1 comment
Closed

How do you change the directory of the parent process? #53

isshe opened this issue Mar 10, 2020 · 1 comment

Comments

@isshe
Copy link

isshe commented Mar 10, 2020

I want to implement the cd command with python, but I don't know how to modify the working directory of the parent process (shell).馃槀

@gsamokovarov
Copy link
Owner

jump cd only gives you the path you need to jump to. j is a shell function that actually, cd's to it:

jump/shell/bash.go

Lines 21 to 22 in 2c3d409

local dir="$(jump cd $@)"
test -d "$dir" && cd "$dir"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants