0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windows powershellにscoop&oh-my-poshをインストール

Last updated at Posted at 2021-02-28

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/

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?