You are not logged in.

#1 2018-10-17 16:38:21

desperado
Member
Registered: 2018-10-12
Posts: 59

changing the $SHELL variable

I've shifted from bash to zsh recently using the chsh command, once on the root user account and once on the account which I use for daily purpose. Yet $SHELL shows /bin/bash. How do I change this?

Also, how do I change the default shell of all users at once?

Offline

#2 2018-10-17 16:47:02

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: changing the $SHELL variable

What command exactly did you run? Have you logged out and back in since?

https://wiki.archlinux.org/index.php/Co … ault_shell

Setting the default shell depends on what you use to create accounts. 'useradd' for instance reads /etc/default/useradd, where SHELL is defined.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2018-10-17 17:25:15

desperado
Member
Registered: 2018-10-12
Posts: 59

Re: changing the $SHELL variable

You're right. I stayed logged in for the whole day.

Also Gilgamesh, I used the same command  "chsh -s /bin/zsh"

I've read that zsh resides in /usr/bin/ for Ubuntu. So why is it showing as well when you list all available shells using "chsh -l" ?

Offline

#4 2018-10-17 22:09:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,836

Re: changing the $SHELL variable

I've read that zsh resides in /usr/bin/ for Ubuntu.

Do you use ubuntu?

"chsh -l" essentially just prints /etc/shells

Offline

#5 2018-10-18 00:52:12

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: changing the $SHELL variable

desperado wrote:

I've read that zsh resides in /usr/bin/ for Ubuntu. So why is it showing as well when you list all available shells using "chsh -l" ?

I guess you mean /bin being a symbolic link(symlink) to /usr/bin (see) https://wiki.archlinux.org/index.php/Fr … 8FHS.29.3F

As to why they both show up: https://git.archlinux.org/svntogit/pack … ckages/zsh

Offline

Board footer

Powered by FluxBB