SUDO icon indicating copy to clipboard operation
SUDO copied to clipboard

porting to fish

Open xmine64 opened this issue 6 years ago • 4 comments

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?

xmine64 avatar Sep 04 '19 05:09 xmine64

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 avatar Sep 04 '19 06:09 jthistle

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.

jthistle avatar Sep 04 '19 06:09 jthistle

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

xmine64 avatar Sep 04 '19 07:09 xmine64

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

xmine64 avatar Sep 04 '19 10:09 xmine64