Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: can't write zsh_history
- X-seq: zsh-users 10863
- From: Roman Neuhauser <neuhauser@xxxxxxxxxx>
- To: William Scott <wgscott@xxxxxxxxxxxxxxxxxx>
- Subject: Re: can't write zsh_history
- Date: Fri, 13 Oct 2006 16:44:20 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <Pine.OSX.4.61.0610130728450.16304@xxxxxxxxxxxxxxx>
- Mail-followup-to: William Scott <wgscott@xxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <76C42610-83A0-4174-ADBF-5CD4D75891D5@xxxxxxxxx> <200610121802.k9CI2A8i025805@xxxxxxxxxxxxxx> <Pine.OSX.4.61.0610130720390.16279@xxxxxxxxxxxxxxx> <Pine.OSX.4.61.0610130728450.16304@xxxxxxxxxxxxxxx>
# 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