LoginSignup
3
0

More than 3 years have passed since last update.

PowerShell7にPowerlineを設定時に起きたエラーの対応備忘録

Posted at

こちらを参考にPowerShell7にPowerlineを設定しようとした際にエラーが発生したので備忘録。

Windows TerminalでPowerlineの環境を整える - ビー鉄のブログ

PowerShellで

notepad $PROFILE

を実行し、下記3行を追加した。

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox

再度PowerShellを立ち上げると下記のエラーが発生。

The term 'Set-Theme' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.

Windows Terminal - PowerShell customization via oh-my-posh/posh-git Set-Theme error?

It seems the "Set-Theme" cmdlet was renamed to "Set-PoshPrompt".

どうやらコマンドが変わったとのこと。

修正後

Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt Paradox

解決。

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