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

Add process struct #19

Merged
merged 11 commits into from
Feb 10, 2020
Merged

Add process struct #19

merged 11 commits into from
Feb 10, 2020

Conversation

vinc
Copy link
Owner

@vinc vinc commented Feb 7, 2020

Add a process struct to store the current dir, user, and env vars.

This will allow the use of relative paths and of a home dir set in env vars.

The go command, equivalent to the cd in Unix and Windows, can now be used. With go <dir> to change the current dir and go without argument to print the current dir.

@vinc
Copy link
Owner Author

vinc commented Feb 7, 2020

At the moment there is only one process but this will change.

@vinc
Copy link
Owner Author

vinc commented Feb 8, 2020

Use goto instead of go for the fullname command, and still use g for its short name. It could of course be aliased to cd.

> goto /tmp

> list
alice.txt
hello.txt

> read hello.txt
Hello, world!

@vinc vinc merged commit d5ff99c into master Feb 10, 2020
@vinc vinc deleted the feature/process branch February 10, 2020 20:29
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

Successfully merging this pull request may close these issues.

1 participant