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 3 years have passed since last update.

Starshipをインストールする(Windows)

Posted at

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