Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: can't write zsh_history



# wgscott@xxxxxxxxxxxxxxxxxx / 2006-10-13 07:30:52 -0700:
> is there a way to alias
> 
> "sudo zsh"  to "sudo /bin/zsh -l" ?

    sudo()
    {
      if [ $# -eq 1 -a "x$1" = "xzsh" ]; then
        command sudo /bin/zsh -l
      else
        command sudo "$@"
      fi
    }

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991



Messages sorted by: Reverse Date, Date, Thread, Author