Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
78
rated 0 times [  78] [ 0]  / answers: 1 / hits: 49052  / 1 Year ago, tue, january 24, 2023, 4:44:05

I am using Ubuntu 12.04 and started using zsh. The way I changed my shell is



$ sudo chsh -s /usr/bin/zsh


I changed my prompt theme etc and the changes kicked in. When I do a echo $SHELL I can see that zsh is my shell. But when I open a new terminal bash seems to be my shell. However when su to a different user and su back zsh seems to be the shell.



Please advise.


More From » 12.04

 Answers
4

Note: I use 12.04 so these instructions might not apply to later versions of Ubuntu / gnome-terminal




In gnome-terminal, the system will usually default to using Bash, because that's what gnome-terminal runs.



I overrode that "default" by changing the profile preferences. Open up gnome-terminal (the "Terminal" application), then go to 'Edit' and 'Profile Preferences'.



Make sure you're editing the 'default' profile, and go to the "Title and Command" tab.



Under "Command" there are three checkboxes: "Run command as a login shell", "Update login records when command is launched", and "Run a custom command instead of my shell".



I checked all three boxes, and under "Custom command:" I put zsh.



I also set "When command exits:" to "Exit the terminal" so it closes the terminal window.



Hit the "Close" button, then exit gnome-terminal and then reopen it. It should now start zsh instead of Bash.


[#29575] Wednesday, January 25, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
smelrop

Total Points: 263
Total Questions: 122
Total Answers: 108

Location: Saudi Arabia
Member since Thu, Jan 28, 2021
3 Years ago
smelrop questions
Mon, Mar 13, 23, 07:22, 1 Year ago
Sun, Feb 5, 23, 13:02, 1 Year ago
Tue, Aug 31, 21, 00:50, 3 Years ago
Sat, Dec 18, 21, 15:18, 2 Years ago
;