LoginSignup
14
9

More than 5 years have passed since last update.

Bash on Ubuntu On Windowsのデフォルトシェルをzsh、あるいはtmuxにする(別解)

Last updated at Posted at 2016-09-21

zshを使うようになって久しいので、Windowsでもbashではなくzshを使いたいものです。

やりかたはすでにいろいろ挙がっています

ここでは、Windows側からアプローチしてみます。

ステップ1 ショートカットを開く

[Start] > [Bash on Ubuntu on Windows]を右クリック > [More] > [Open File Location]を選びます。

bash1.png

ステップ2 ショートカットのプロパティを開く

Bash on Ubuntu on Windowsファイルを右クリックして[properties]を選びます。

bash2.png

ステップ3 ターゲットを変更

Targetを次のように変更します。

変更前
C:\Windows\System32\bash.exe ~
変更後
C:\Windows\System32\bash.exe ~ -c zsh

bash3.PNG

ここでzshと書かずにtmuxと書けば、いきなりtmuxが起動します。

おしまい

スタートメニューからBash on Ubuntu on Windowsを選んでみてください。
もしすでにタスクバーへピンどめしているときは、もう一度ピンどめしなおしてください。
お疲れ様でした。

14
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
9