Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you switch to zsh when using Nitrous.io

Tags:

zsh

nitrousio

Any ideas? I've tried using :

chsh -s /bin/zsh

But any password I've tried has failed.

like image 313
semmons99 Avatar asked Mar 22 '23 17:03

semmons99


2 Answers

You can't use zsh in the main console as you don't have root access, but you could utilize zsh with tmux (which is already installed on your Nitrous box).

You will just need to add this line into ~/.tmux.conf :

set-option -g default-shell /bin/zsh

Once this has been added, start a new tmux session by running:

tmux new -s session_name
like image 63
Greg Avatar answered Apr 06 '23 23:04

Greg


Just put zsh at the end of ~/.bashrc to automatically start zsh in the main console when you log in.

Typing exit once will take you back to bash.

like image 45
Sebastián Grignoli Avatar answered Apr 07 '23 01:04

Sebastián Grignoli