PowerShellのキーバインドをEmacs風にする【PSReadLine】 - メモ.org
https://github.com/PowerShell/PSReadLine をインストール
なお、PowerShell 6+ではすでにインストールされているため、利用設定だけすればよい
If you are using Windows PowerShell on Windows 10 or using PowerShell 6+,
PSReadLine
is already installed. Windows PowerShell on the latest Windows 10 has version2.0.0-beta2
ofPSReadLine
. PowerShell 6+ versions have the newer prerelease versions ofPSReadLine
.
notepad $PROFILE
を実行して以下を追記
if ($host.Name -eq 'ConsoleHost')
{
# キーバインドをEmacs風に変更
Set-PSReadlineOption -EditMode Emacs
}