目的
PowerShellのprofileファイル “Microsoft.PowerShell(ISE)_profile.ps1” を作成する。
※ sh の ".profile
" や bash の ".bash_profile
" に相当するPowerShellの設定ファイル
profileファイルの場所は $profile で、あらかじめパスが指定されている。
profileファイルを置くフォルダを調べる方法から説明する。
作業手順
1. $profile の確認
1-1. PowerShell の実行例
1 2 |
PS C:\> $profile C:\Users\JaneDoe\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 |
1-2. PowerShell ISE の実行例
1 2 |
PS C:\> $profile C:\Users\JaneDoe\Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1 |