Differences between revisions 1 and 11 (spanning 10 versions)
Revision 1 as of 2009-06-25 21:12:12
Size: 391
Editor: 41-62
Comment:
Revision 11 as of 2021-06-15 07:45:26
Size: 741
Editor: stroth
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#rev 2020-10-22 bonaccos
Line 2: Line 4:
Everybody on the system has to use tcsh as login shell, because this allows us to put a standard configuration into each account. But don't worry, it's no problem to change the shell for all further operations after the login. Just put `setenv SHELL /usr/sepp/bin/zsh` into your `~/.login ` file. Each terminal you start will then invoke `zsh`.
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.

 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
}}}
----
[[CategoryLXCL]]

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.

  1. Create a backup of your ~/.bashrc, as it will be replaced to start zsh and not do anything else

    cp ~/.bashrc ~/.bashrc.bak
    
  2. Replace the content of ~/.bashrc with the following commands:

    if shopt -q login_shell; then
        export SHELL=/bin/zsh
        exec /bin/zsh
    fi
    


CategoryLXCL

FAQ/ZshAsDefaultShell (last edited 2023-02-22 11:46:38 by bonaccos)