怎样更改PowerShell的命令行EditMode Emacs模式

在PowerShell中更改editmode为emacs模式:

Set-PSReadLineOption -EditMode Emacs

但适用当前的terminal,新打开则无效。

怎样能全局设置为emacs模式?

PowerShell的配置文件位置echo $profile,类似.bashrc

打开它,notepad $profile,把配置写进去就行了

1 个赞

谢谢,好棒。。。