Make sudo, xargs, doas, etc. understand aliases
This commit is contained in:
parent
feab949e99
commit
bda8d4d945
5
init.zsh
5
init.zsh
@ -43,6 +43,11 @@ alias clip="xclip -selection clipboard"
|
|||||||
# I mess this up a lot
|
# I mess this up a lot
|
||||||
alias cd..="cd .."
|
alias cd..="cd .."
|
||||||
|
|
||||||
|
# Make xargs, sudo, etc. understand aliases
|
||||||
|
alias xargs='xargs '
|
||||||
|
cmd_exists sudo && alias sudo='sudo '
|
||||||
|
cmd_exists doas && alias doas='doas '
|
||||||
|
|
||||||
# Neovim stuff
|
# Neovim stuff
|
||||||
if [[ -v NVIM ]]; then
|
if [[ -v NVIM ]]; then
|
||||||
export EDITOR=nvr
|
export EDITOR=nvr
|
||||||
|
Loading…
Reference in New Issue
Block a user