runit icon indicating copy to clipboard operation
runit copied to clipboard

completions: add SVDIR support for zsh

Open crater2150 opened this issue 4 years ago • 0 comments

Moved from void-linux/void-packages#28790

Allows sv's completion to complete other service directories, e.g. for per-user services. If the $SVDIR environment variable is set and sv isn't used with sudo, the completion is changed to complete services from $SVDIR. Otherwise behaviour is unchanged.

I currently have only implemented the change for zsh. In bash, the sudo completion modifies variables so that the completion of the following command doesn't "see" the sudo in the beginning. I'm still looking for ways to detect sudo in bash.

crater2150 avatar Feb 16 '21 22:02 crater2150