Windows powershellにscoop&oh-my-poshをインストール
scoop のインストール
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
ツールをインストール
scoop install aria2
scoop install jq ccat wget sed vim
scoop install 7zip sudo git unzip openssl
PowerLineのインストール
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
プロファイルを修正
以下のファイルを修正もしくは、作成。
\Users\【ユーザー名】\Documents\PowerShell\profile.ps1
# Ctrl + d で Exit
Import-Module PSReadLine
Set-PSReadlineKeyHandler -Key ctrl+d -Function DeleteCharOrExit
# bash風のtab補完
Set-PSReadLineKeyHandler -Key Tab -Function Complete
# PowerShellでPowerLineを適用するための設定
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme Paradox
Fontは、これで。
プログラミングフォント 白源 (はくげん/HackGen)
https://github.com/yuru7/HackGen
参考
https://ascii.jp/elem/000/004/045/4045177/
https://tech-blog.cloud-config.jp/2021-02-19-switch-lover-from-wsl-to-powershell/