[zsh] improve emerge alias

need to run with doas otherwise it wouldn't do anything
This commit is contained in:
odrling 2023-11-20 12:22:36 +01:00
parent 78054afabc
commit 0482cd8c77
No known key found for this signature in database
GPG key ID: E24CA7508C27AF5B

3
.zshrc
View file

@ -95,7 +95,8 @@ alias dns="dig +short"
alias mpvp="mpv_playlists"
alias fm=clifm
alias tb="nc termbin.com 9999"
command -v direnv > /dev/null && alias emerge="direnv exec ~ emerge"
command -v doas > /dev/null && _EMERGE_CMD="doas emerge" || _EMERGE_CMD="emerge"
command -v direnv > /dev/null && alias emerge="direnv exec ~ $_EMERGE_CMD"
export NEOVIDE_MULTIGRID=1
alias neovide="neovide --nofork"