Windowsでのターミナル環境構築(自分用メモ)


自分用 Windowsターミナル環境構築メモ

パッケージマネージャ導入

Set-ExecutionPolicy AllSigned
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

$ choco install chocolateygui

ターミナルソフト準備

ConEmu

$ choco install ConEmu

RictyDiminished-for-Powerline

$ git clone https://github.com/mzyy94/RictyDiminished-for-Powerline.git

  • ttfをDLしてインストール
  • ターミナルのフォント設定⇒
    • Ricty Diminished for Powerline
    • Monospace:off

シェル設定

zsh:Babun

$ choco install babun

$ vi ~/.zshrc

- ZSH_THEME="babun"
+ ZSH_THEME="好きなテーマ"
  # ex) "agnoster", "paradox", "ys"
- plugins=(git)
+ plugins=(git themes)

$ vi ~/.minttyrc

+ Font=Ricty for Powerline
+ FontHeight=11

Powershell:oh-my-posh

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
# プロファイルにテーマ設定
if (-Not (Test-Path $profile)) {New-Item -path $profile -type file -force};
echo "Set-Theme Fish" >> $PROFILE

その他参考サイト