Scoopをインストールする
ScoopのGitリポジトリにインストール方法が記載されているのでそのまま実行する。
powershell
> Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
Initializing...
Downloading scoop...
Extracting...
Creating shim...
Downloading main bucket...
Extracting...
Adding ~\scoop\shims to your path.
'lastupdate' has been set to '2021-12-26T11:04:15.3605499+09:00'
Scoop was installed successfully!
Type 'scoop help' for instructions.
Starshipをインストールする
Starshipのサイトにインストール方法が記載されているのでそのまま実行する。
powershell
> scoop install starship
Installing 'starship' (1.1.1) [64bit]
starship-x86_64-pc-windows-msvc.zip (2.5 MB) [================================================================] 100%
Checking hash of starship-x86_64-pc-windows-msvc.zip ... ok.
Extracting starship-x86_64-pc-windows-msvc.zip ... done.
Linking ~\scoop\apps\starship\current => ~\scoop\apps\starship\1.1.1
Creating shim for 'starship'.
'starship' (1.1.1) was installed successfully!
Notes
-----
Usage: Add 'Invoke-Expression (&starship init powershell)' to the end of your PowerShell $PROFILE.
Prerequisites: A Powerline font installed and enabled in your terminal.
'starship' suggests installing 'extras/vcredist2019'.
PowerShellのプロファイルを設定する
Starshipのインストール時にUsage: Add 'Invoke-Expression (&starship init powershell)' to the end of your PowerShell $PROFILE.
とあるので、その通りにプロファイルを編集する。
powershell
> Write-Output "Invoke-Expression (&starship init powershell)" | Add-Content $profile -Encoding Default
編集したプロファイルを適用する。
powershell
> . $profile