How can I let sudo use my existing aliases in my .bash_profile (or .bashrc, .profile …)?
For example I want to be able to use ll instead of ls -laGF as sudo.
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
|
|
|
No. Sudo draws from the root account and won't consult your user's But you can workaround this problem by adding the following alias to your profile:
*Note the space after the command. From then on, Explanation: http://www.gnu.org/software/bash/manual/bashref.html#Aliases says:
|
||||