Create Alias for Sudoers

maelamrani

New Member
Credits
47
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,
 


maelamrani

New Member
Credits
47
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


Latest posts

Top