You are not logged in.

#1 2014-10-13 14:42:56

dsar
Member
From: Saint Petersburg
Registered: 2014-10-09
Posts: 44

[SOLVED] i3wm - change shell

I am trying to change my default shell from bash to zsh. I am using i3 window manager
and I have run

 chsh -s /bin/zsh username 

so I changed my default shell.
The problem is that when I reboot the system and login, it doe not start i3.
Then if I change again to bash

 chsh -s /bin/bash username 

and reboot it works.

Do I have to change something more to make it work properly?
Thanks in advance!

Last edited by dsar (2014-10-13 15:22:11)

Offline

#2 2014-10-13 14:47:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,550
Website

Re: [SOLVED] i3wm - change shell

How do you start X/i3?  I'm guessing it is started from your bashrc, which isn't read by zsh, right?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2014-10-13 14:49:14

dsar
Member
From: Saint Petersburg
Registered: 2014-10-09
Posts: 44

Re: [SOLVED] i3wm - change shell

Trilby wrote:

How do you start X/i3?  I'm guessing it is started from your bashrc, which isn't read by zsh, right?

I run

 exec i3 

in the last line of .xinit file

Offline

#4 2014-10-13 15:12:16

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [SOLVED] i3wm - change shell

How do you run "startx"? If you used .bash_profile to run startx before, you have to use .zprofile now.

Offline

#5 2014-10-13 15:15:04

dsar
Member
From: Saint Petersburg
Registered: 2014-10-09
Posts: 44

Re: [SOLVED] i3wm - change shell

teateawhy wrote:

How do you run "startx"? If you used .bash_profile to run startx before, you have to use .zprofile now.

So I need to copy .bash_profile to .zprofile?
And do I have to create .zprofile because it does not exist at the time

Last edited by dsar (2014-10-13 15:16:28)

Offline

#6 2014-10-13 15:19:06

bstaletic
Member
Registered: 2014-02-02
Posts: 658

Re: [SOLVED] i3wm - change shell

Yes, create .zprofile and startx code is the same for both shells so you can actually do "cp ~/.bash_profile ~/.zprofile".

Offline

#7 2014-10-13 15:21:33

dsar
Member
From: Saint Petersburg
Registered: 2014-10-09
Posts: 44

Re: [SOLVED] i3wm - change shell

bstaletic wrote:

Yes, create .zprofile and startx code is the same for both shells so you can actually do "cp ~/.bash_profile ~/.zprofile".

Thanks! That worked!

Offline

Board footer

Powered by FluxBB