zsh-users / fizsh

Friendly Interactive ZSHell.
Other
299 stars 18 forks source link

fix using wrong path when installed in /sbin #21

Closed Anomalocaridid closed 3 months ago

Anomalocaridid commented 2 years ago

In #20, I had an issue where fizsh would try to copy scripts from /setc, a nonexistent directory, instead of /etc. After some quick investigation, it turns out that a sed command that converted fizsh's location in /bin to the scripts' location in /etc was to blame.

On my system, fizsh was installed to /sbin, which would get turned into /setc. This pull request fixes the sed command responsible for this bug so that fizsh now works properly even if it is installed in /sbin.

Anomalocaridid commented 3 months ago

Going to close this because this repo appears to be unmaintained anyways.