Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
question about zsh shell and bash programs [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
adcdam
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jan 2015
Posts: 135

PostPosted: Sun Mar 29, 2020 11:39 pm    Post subject: question about zsh shell and bash programs [solved] Reply with quote

Hi i use tbsm as display manager https://loh-tar.github.io/tbsm/ tbsm is written in bash, i want to use zsh as my main shell instead of bash, i installed zsh and changed with the chsh command to zsh, when booting the system start but tbsm doesnt it goes to the zsh config.
but if im using bash and in the terminal y type zsh and then from zsh y launch tbsm the program start, how can i make tbsm work with zsh at start?


Last edited by adcdam on Mon Mar 30, 2020 12:50 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2127
Location: Frankfurt, Germany

PostPosted: Mon Mar 30, 2020 12:42 am    Post subject: Reply with quote

I'm afraid I don't understand the question. What exactly doesn't work?

Do you want your machine to start tbsm automatically after you log in? And that works if you use bash as login shell and it doesn't work if you use zsh as login shell?

If that was the question, the answer is:
  1. The tbsm manual recommends to add the two lines below to ~/.bash_profile if you want tbsm to be started after login:
    Code:
    # Auto start tbsm after login on first two VTs
    [[ $XDG_VTNR -le 2 ]] && tbsm

  2. zsh does NOT run ~/.bash_profile after login. Instead, it runs ~/.zprofile.

  3. Therefore, if you configure zsh to be the login shell, it's necessary to add the tbsm start commands to ~/.zprofile.
Back to top
View user's profile Send private message
adcdam
Tux's lil' helper
Tux's lil' helper


Joined: 15 Jan 2015
Posts: 135

PostPosted: Mon Mar 30, 2020 12:49 am    Post subject: Reply with quote

thanks, tbsm is working now!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum