Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Want to replace bash w zsh as system shell on Ubuntu
- X-seq: zsh-users 14815
- From: Linus Arver <linusarver@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Want to replace bash w zsh as system shell on Ubuntu
- Date: Mon, 8 Feb 2010 10:09:22 -0800 (PST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:x-x-sender:to :subject:in-reply-to:message-id:references:user-agent:mime-version :content-type; bh=0zXlPjQwoEP1888VTzZa1yfmvWuYUEU8/rop/+cjFqA=; b=Z/SFHWXIdYWLYcs4BelsCWWJp80jcujlLVVFKD1pi+GCIqhvV3o2BgIvIX+5yeuv0X YelRGTbCdGDCwNA8155ksUrohXkruaOB+dx42c7KId6D1euihCx2S3L4K5Qtl0hv1N1s ip5IthRoDdiebLaHZUjid7iaDR/avsNsNVx7Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:x-x-sender:to:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; b=hnD6EVEGHJssASrB2+oIPzmOSnhhtiiqhlr0hoffh+jCvpHBaXetT8BljpaCvbeZXi CwjcIvG6D6I+IMfRPzR2K+jq3lOISWEAubvTx/bSATlVW/dglgm7AZF04pVT6O0tOQTH H6oVWsJo4XyQh8/rZoHX4KeIimvAToVsgWD+c=
- In-reply-to: <20100202081546.GA5930@xxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20100202081546.GA5930@xxxxxxxxx>
On Tue, 2 Feb 2010, rj wrote:
Though just now I saw this:
"To start a root shell, but keep the current shell's environment, use:
sudo -s (similar to sudo su)"
(where "sudo i" give you root's environment configuration.)
But "sudo -s", for me, returns "sudo: shell: command not found"
As others have pointed out already, this is because you have not set your
$SHELL environment variable to a valid path. In your init script settings the
$SHELL variable to /path/to/zsh should fix the broken "sudo -s" command. So,
put this somewhere in one of your init scripts (I don't use Ubuntu, but I
assume something like /etc/rc.local, or even your plain old ~/.zshrc should
work):
export SHELL=/path/to/zsh
You might want to check all of your environment variables by doing:
env
You could double-check that your new SHELL variable is set properly by calling
env after re-logging into your system with your modified init script.
-Linus
Messages sorted by:
Reverse Date,
Date,
Thread,
Author