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

Remember changed directories #16

Open
djl11 opened this issue Aug 23, 2021 · 0 comments
Open

Remember changed directories #16

djl11 opened this issue Aug 23, 2021 · 0 comments

Comments

@djl11
Copy link

djl11 commented Aug 23, 2021

Very useful tool, thanks a lot for sharing!

I think hss would be even more powerful if there was an option to remember what directories have been traversed during the interactive session. This would make the experience closer to being in an interactive shell.

I'm not sure how best to do this, but a naive approach would be to store the directory after each parralel-ssh command is exited, and then just cd into this directory as the first command on the next parrallel-ssh invocation like so:

parallel-ssh -i -H server "cd /my/previous/dir; my_next_commands"

I would make a PR, but I'm not familiar enough with the code to know where to suggest a change.

Does this feature sound plausible? And if so, do you agree it would be useful?

Thanks,
Dan

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

1 participant