当前位置: 首页> 文旅> 文化 > 美食网页设计素材_世界建筑设计网站_哪个平台推广效果最好_深圳网站推广

美食网页设计素材_世界建筑设计网站_哪个平台推广效果最好_深圳网站推广

时间:2025/8/26 21:59:49来源:https://blog.csdn.net/qq_45993770/article/details/144631327 浏览次数:0次
美食网页设计素材_世界建筑设计网站_哪个平台推广效果最好_深圳网站推广

windows的git bash用着不是很顺手,例如复制粘贴不是常用的快捷键,自己研究了在powershell中使用git bash,并对powershell进行终端美化。

终端美化的软件:starship软件

starship提供了简易的终端美化功能;

powershell功能增强:

  1. 查看powershell已经安装的模块:
Get-InstalledModule
  1. 安装 PSReadLine
    PSReadLine 提供了语法高亮、错误提示、多行编辑、键绑定、历史记录搜索等功能,安装方式:
Install-Module PSReadLine

安装完PSReadLine后,需要自定义配置文件,配置文件打开方式为:

code $profile

自己的配置为:

# 打开终端默认激活starship
Invoke-Expression (&starship init powershell)
# 引入Ps-readline
Import-Module PSReadLineSet-PSReadLineOption -PredictionSource History
# Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -EditMode WindowsSet-PSReadlineKeyHandler -Key Tab -Function Complete
Set-PSReadLineKeyHandler -Key "Ctrl+d" -Function MenuComplete
Set-PSReadLineKeyHandler -Key "Ctrl+z" -Function Undo
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward# 引入 posh-git
Import-Module posh-git# 设置默认编码方式
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 

参考链接:
powershell命令增强

powershell命令补全

关键字:美食网页设计素材_世界建筑设计网站_哪个平台推广效果最好_深圳网站推广

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: