Size: 603
Comment:
|
Size: 741
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
But don't worry, it's no problem to change the shell for all further operations after the login. Just put `export SHELL=/bin/zsh` into your `~/.bashrc` or `setenv SHELL /bin/zsh` in your `~/.cshrc` (in case you where not yet switched to bash as default shell and still have it set to `tcsh`) and then `exec` the shell wanted. | But don't worry, it's no problem to change the shell for all further operations after the login. 1. Create a backup of your `~/.bashrc`, as it will be replaced to start `zsh` and not do anything else {{{#!highlight bash numbers=disable cp ~/.bashrc ~/.bashrc.bak }}} 1. Replace the content of `~/.bashrc` with the following commands: {{{#!highlight bash numbers=disable if shopt -q login_shell; then export SHELL=/bin/zsh exec /bin/zsh fi }}} |
How can I have zsh as my default shell?
Everybody on the system has to use bash as login shell, because this allows us to put a standard configuration into each account. This remains the default shell of a User.
But don't worry, it's no problem to change the shell for all further operations after the login.
Create a backup of your ~/.bashrc, as it will be replaced to start zsh and not do anything else
cp ~/.bashrc ~/.bashrc.bak
Replace the content of ~/.bashrc with the following commands:
if shopt -q login_shell; then export SHELL=/bin/zsh exec /bin/zsh fi