如何变更win10的PowerShell为Emacs

打开window-terminal,其默认的命令行编辑模式非emacs。搜索到这一行代码:

Set-PSReadLineOption -EditMode Emacs

然而,只对当前session有效,当打开新的terminal之后,又回到原先的模式。

尝试将其写入start文件

如何变更win10的PowerShell为Emacs

但是依旧无效。

原来,PowerShell也有与linux-bash相同的启动文件:

PS C:Usersgaowei> echo $profile
C:UsersgaoweiDocumentsWindowsPowerShellMicrosoft.PowerShell_profile.ps1

只需要将这一行代码加入文件即可。

notepad $profile
如何变更win10的PowerShell为Emacs

展开阅读全文

页面更新:2024-05-04

标签:编辑   模式   代码   文件   科技

1 2 3 4 5

上滑加载更多 ↓
推荐阅读:
友情链接:
更多:

本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828  

© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号

Top