security/doas can't work with zsh alias

alphachi alphachi at
Mon Jun 26 12:25:05 UTC 2017

I'm preparing to migrate to doas and the following commands are my test:

% cat /usr/local/etc/doas.conf
permit nopass keepenv fbsd as root
permit nopass keepenv root as root
% id -nu
% doas id -nu
% echo $SHELL
% doas echo $SHELL
% alias
% doas alias

As this shows, doas doesn't know this alias, so "doas vi" can't invoke
installed vim.

Is this reasonable or just my mistake? How to enable zsh alias for doas?

More information about the freebsd-questions mailing list