Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバーでは Bash をデフォルトのシェルとして使用していますが、zsh の方が好きな人もいるので、ZSH を自動的に設定する方法を探しています。
chsh から zsh i はオプションではありません。
どうですか
ssh -t remote_user@remote_host zsh
?
どのように「自動的に」必要かによって異なります。zshプロンプトを表示するだけでよい場合ssh -t remote_user@remote_hostは、おそらくbash関数の行について考える必要があります。しかし、IMO、それは本当に悪い方法です。
ssh -t remote_user@remote_host