Duncaen / OpenDoas

A portable fork of the OpenBSD `doas` command
Other
610 stars 35 forks source link

ZSH aliases when using doas #66

Closed ethanh92 closed 3 years ago

ethanh92 commented 3 years ago

How should I configure setenv in doas.conf to preserve my .zshrc aliases? I have set my $ZDOTDIR to ~/.config/zsh if that's relevant at all.

Figured it out. Adding the alias doas='doas ' to my .zshrc does the trick.

Duncaen commented 3 years ago

Aliases are internal to your shell and not passed through the environment, doas can't do anything about them.

Not sure what exactly the issue was, but since it is resolved I'm closing this.