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

Usage details for builtins? #125

Open
stianhoiland opened this issue Aug 16, 2024 · 3 comments
Open

Usage details for builtins? #125

stianhoiland opened this issue Aug 16, 2024 · 3 comments

Comments

@stianhoiland
Copy link

Hey! I'm new to Yori and I love it. What a great work of passion!

I find myself typing help quite often, and still not finding out how to do or use things.

For example I wanted to make the cd command (which is not mentioned in Yori's help command) always dir afterwards, so I tried alias cd cd && dir. Admittedly that was stupid in more than one way, but okay so now I go look at how to use the alias command, and neither alias -h, alias --help nor alias -help does anything. So I go look at https://www.malsmith.net/yori/guide/, and not even here is the syntax for alias explained.

I know it's simple and you probably only need to learn it once and you develop your CLI intuition after a while, but I'm wondering if there is a builtin way to find this kind of information?

@stianhoiland
Copy link
Author

Looks like I also managed to mess up the hidden cd alias? And I'm guessing I also managed to fix it using alias cd=chdir $*$? xD

@malxau
Copy link
Owner

malxau commented Aug 19, 2024 via email

@stianhoiland
Copy link
Author

Aha! So it's -?. I would never have guessed! I will try it out next time I'm at my Windows machine; so too with alias -s.

And I see: I'll create a little script for my cd && dir purpose, and alias the script. Thanks for the guidance.

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