There is a shell function add_book in my .zshrc. I need to invoke this function with sudo permission. But when I invoke sudo add_book I get the following error:
sudo: add_book: command not found
What can I do?
|
There is a shell function
What can I do? |
||||
|
|
|
You can run the program by getting root permission in advanced with this command:
Then run your command when it turns into root@hostname# |
|||||
|
|
|||
|
|