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.

PowerShellにPathを永続的に追加する Ubuntu(Linux)版

Last updated at Posted at 2021-03-06

環境

Ubuntu 20.04 LTS
PowerShell 7.1.2

方法

Microsoft.PowerShell_profile.ps1
$Env:PATH += ":追加したいパス"

上記の記述を ~/.config/powershell/Microsoft.PowerShell_profile.ps1 に追加する。
デフォルトでは powershellディレクトリも Microsoft.PowerShell_profile.ps1も存在しないので、新規作成する。
LinuxではPathの区切り文字はコロン(:)で、 追加したいパス の前に付ける。

参考にしたウェブサイト(Widnows 10 環境)

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?