I like the configurablity of the ZSH terminial but I cannot seem to make my login default to the ZSH. Also where is the config file for the ZSH interface?

asked 11 May '10, 01:27

The%20Doc's gravatar image

The Doc
2315
accept rate: 0%




To make zsh your default shell, run usermod -s /path/to/zsh [yourusername] or edit your /etc/passwd file by hand

"Commands are then read from $ZDOTDIR/.zshenv. If the shell is a login shell, commands are read from /etc/zsh/zprofile and then $ZDOTDIR/.zprofile. Then, if the shell is interactive, commands are read from /etc/zsh/zshrc and then $ZDOTDIR/.zshrc. Finally, if the shell is a login shell, /etc/zsh/zlogin and $ZDOTDIR/.zlogin are read." --from man zsh

link

answered 11 May '10, 01:52

someguy's gravatar image

someguy
361
accept rate: 100%

Thank You. The usermod -s command is exactly what I was looking for.

(11 May '10, 18:27) The Doc

If all you have to change is the shell, it might be simpler to use the following

chsh -s /path/to/zsh username

and if you're not sure about the full path to zsh, you can first run it as

chsh -l

in order to obtain a list of valid shells...

link

answered 12 May '10, 18:15

pmarini's gravatar image

pmarini
286216
accept rate: 28%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×5
×4
×1
×1

Asked: 11 May '10, 01:27

Seen: 2,645 times

Last updated: 12 May '10, 18:15

powered by OSQA