ZSH is not launched while opening a new terminal with `gnome-terminal`

mehant

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.

Thomas Ward

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.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Gnome Terminal not opening

Why does opening new zsh terminal print environment vars

ZSH alias throwing error on opening new terminal window

Gnome-terminal and Zsh: keep current directory on new tab/window

GNOME terminal not opening in Ubuntu 18.04

ctrl-alt-t opens new terminal window instead of new tab while gnome terminal is active window

Terminal Zsh error after just opening terminal on Mac Catalina

How to set zsh as default for gnome terminal only?

Opening multiple tabs with gnome-terminal

Opening gnome-terminal and running script in tcl

Having tmux load by default when a zsh terminal is launched

Error while opening Rstudio throught Terminal

Opening new terminal from terminal and navigating directories (Permission denied?)

Running couple of commads in new terminal tabs in zsh

.bashrc not executed when opening new terminal

Portable method of opening a new terminal window?

Opening a new tab in Firefox through the terminal

Disabling mouse hiding in Gnome Terminal while typing

Return code 8 while launching gnome terminal

Open new gnome-terminal and run command

How to run a command in a new gnome-terminal?

Run command in new gnome-terminal and .bashrc

bash: "command not found" when calling function defined in ~/.bashrc file in `bash -c` command while opening gnome-terminal tab

Trailing spaces when copying from gnome-terminal using zsh

How to automatically start tmux when opening gnome-terminal

GNOME 3.14+ launch new gnome-terminal and set title

Don't open terminal window while opening SDL window on OSX

Ctrl-z doesn't work in vi launched from Gnome terminal

Make .destop for ZSH such that it launches zsh and remains without transfering to .desktop of gnome-terminal?