在Cloud9 Terminal中设置默认Shell [英] Set default shell in Cloud9 Terminal

查看:80
本文介绍了在Cloud9 Terminal中设置默认Shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在终端中安装了zsh并将其设置为默认外壳程序,但是我仍然登录运行bash。我什至在SSH项目中将其下载到远程服务器,其中zsh是我的登录Shell。我必须在C9中更改什么设置?

I've installed zsh in the Terminal and set it to be my default shell but I'm still logged in running bash. I even get this in a SSH Project to my remote server where zsh is my login shell. What setting in C9 do I have to change?

推荐答案

我知道了!似乎C9在tmux下运行我们的登录会话,而tmux具有自己的默认shell命令设置= bash。我使用 set -g default-command zsh行创建了自己的tmux.conf,运行 unset TMUX以禁用继承的tmux设置,运行了tmux,并使用普通的绿色菜单栏和zsh获得了一个不错的tmux会话默认外壳程序。

I figured it out! It seems C9 runs our login sessions under tmux which has its own default shell command setting = bash. I created my own tmux.conf with the line "set -g default-command zsh", ran "unset TMUX" to disable the inherited tmux settings, ran tmux and got a nice tmux session with the usual green menu bar and with zsh as the default shell.

这篇关于在Cloud9 Terminal中设置默认Shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆