Create Alias for Sudoers

maelamrani

Member
Joined
Jan 3, 2020
Messages
77
Reaction score
7
Credits
450
Hello,
How can i create alias for sudoers for exp
alias vi=vim
because when i exec : sudo vi file i want it to be colored without using vim file
There is a line that i can i add for this alias
alias vi=vim in sudoers file ?
or any other solution
Kind regards,
 


Hello,
I found a solution its to apply the
alias vi=vim
in /etc/profile
So that every user can user that alias
Kind regards,
 

Members online


Top