Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loading zsh as the default shell in gnu screen [closed]

Tags:

Im using KUbuntu 10.04 (Lucid Lynx). I have installed zsh and screen. I have set zsh as the default shell, by setting Command to zsh in Settings->Edit Current Profile of the terminal. But,when i launch screen,the bash shell is loaded. If i run the command zsh, then zsh starts but the following message is displayed:

"/home/joel/.zshrc:36: Can't add module parameter `mapfile': parameter already exists" 

Also,zsh is invoked for only the current screen instance and i have to invoke it manually again for other instances. So,is there any way to make screen load zsh by default and invoke it automatically for every instance ?

Thank You

like image 251
joel Avatar asked May 22 '10 17:05

joel


People also ask

How do I set zsh as default in Linux?

Installing ZSH will not modify and set it as the default shell. We have to modify the settings to make ZSH our default shell. Use the “chsh” command with '-s' flag to switch the default shell for the user.

How do I switch to zsh in Linux?

Set ZSH as your default shell Just run chsh -s /bin/zsh . Note that you'll need to supply the correct path your ZSH binary which you can get with the which zsh command we used earlier. Click here for more information on the chsh command. That's it!


1 Answers

If you want to make it the default shell for screen sessions only, you can simply add this line to your ~/.screenrc file.

shell "/usr/bin/zsh" 
like image 117
jkramer Avatar answered Sep 18 '22 13:09

jkramer