How do I change my default shell to use ZSH in Ubuntu?

10

6

Possible Duplicate:
How do I make Bash my default shell on Ubuntu?

I want to change my default shell in Ubuntu to ZSH. What's the command to do this?

damon

Posted 2010-02-02T15:52:36.637

Reputation: 482

Question was closed 2011-12-10T01:30:21.457

1zsh is a shell, not a terminal. – user1686 – 2011-12-09T08:03:29.500

Answers

19

Use

chsh -s $(which zsh)

Unlike adduser or useradd or editing /etc/passwd, this will allow you to change your shell without having root rights.

ℝaphink

Posted 2010-02-02T15:52:36.637

Reputation: 3 531

0

hum ... zsh is a shell, not a terminal.

An alternative answer to MrStatic's is using change the default shell with chsh, this can be done for your account without any root privileges.

Ben

Posted 2010-02-02T15:52:36.637

Reputation: 149

-1

You would have to edit your /etc/passwd

Use the vipw command and change the shell next to the user you want to change. To make it the default for all new users useradd -D -s /bin/bash

Unfundednut

Posted 2010-02-02T15:52:36.637

Reputation: 6 650