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

porting to fish #11

Open
xmine64 opened this issue Sep 4, 2019 · 4 comments
Open

porting to fish #11

xmine64 opened this issue Sep 4, 2019 · 4 comments

Comments

@xmine64
Copy link

xmine64 commented Sep 4, 2019

Hello. I would rewrite this for fish but I can't undrestand what does it do exactly. what is IFS? can you tell me how is it working?

@jthistle
Copy link
Owner

jthistle commented Sep 4, 2019

Hi! The IFS is the internal file separator, which is set to a : (because in the PATH, paths are separated with a colon). This means that when we read the PATH we can iterate over each individual path. The rest is fairly simple, just aliasing the upper case of each command found in the path to its normalcase counterpart.

@jthistle
Copy link
Owner

jthistle commented Sep 4, 2019

Please feel free make a PR here, I will happily accept your addition as an extension to the original. I'm sure the install script could either detect or ask the user to select the shell that's being used.

@xmine64
Copy link
Author

xmine64 commented Sep 4, 2019

interesting. so you create an alias for each executable in $PATH.
ok I'll push it when it's done.

@xmine64 xmine64 closed this as completed Sep 4, 2019
@xmine64 xmine64 reopened this Sep 4, 2019
@xmine64
Copy link
Author

xmine64 commented Sep 4, 2019

I've written fish version in #12 but it's too slow.

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