set-alias vim"C:\software\git\Git\usr\bin\vim.exe"# 此处为vim的安装路径, 安装完Git就有了set-alias vi"C:\software\git\Git\usr\bin\vim.exe"# 此处为vim的安装路径, 安装完Git就有了new-alias grep findstr # Linux grep 使用惯了, 所以建立一个昵称oh-my-posh --init --shell pwsh --confi...
Set-Alias'sudo''gsudo' 安装oh-my-posh 官方:https://ohmyposh.dev/ git 地址:https://github.com/jandedobbeleer/oh-my-posh winget install oh-my-posh 以上命令会安装 oh-my-posh.exe 以及最新的主题。 安装Nerd Fonts oh-my-posh 的不少主题都是依赖于该字体,否则部分 icon 会乱码,建议安装。 Ne...
Import-Module posh-git# 引入 posh-gitImport-Module oh-my-posh# 引入 oh-my-poshImport-Module -Name Terminal-Icons# 引入文件图标库Import-Module PSReadLine# 历史命令联想# 设置主题Set-PoshPrompt -Theme D:\software\oh-my-posh\themes\kushal.omp.json# Set-PSReadLineOption -PredictionSource History ...
最后就留下了 Powershell7 和这个 posh-git 最后方案改成了 直接改 Powershell7 风格 code $profile 修改最后的样式 带git分支信息 代码备份 # 20220922 # powershell7 # Import-Module posh-git # # 提示插件: PSReadLine 如果是使用 PowerShell 7.1 或以上版本则自带了 PSReadLine 2.1,不需要手动安装。 # ...
首先是 oh-my-zsh 自带的 alias 插件,这些东西能让你在终端少打很多字: 1. git 定义了有关 git 的 alias。常用的有 gaa = git add --all gcmsg =… Windows Terminal美化(oh-my-posh3) 下一个时间戳 更新2022/6/20 新方法如下 1.直接在微软商店搜索oh my posh下载(同时若没有Windows Terminal的可...
Set-Alias'sudo''gsudo' 安装oh-my-posh 官方:https://ohmyposh.dev/ git 地址:https://github.com/jandedobbeleer/oh-my-posh winget install oh-my-posh 以上命令会安装 oh-my-posh.exe 以及最新的主题。 安装Nerd Fonts oh-my-posh 的不少主题都是依赖于该字体,否则部分 icon 会乱码,建议安装。
五.配置cmd终端使用oh-my-posh 六.Git Bash配置oh-my-posh 一. 什么是oh-my-posh? Oh My Posh 是一个适用于任何 shell 的自定义提示引擎,能够使用函数或变量调整提示字符串。 官网:Home | Oh My Posh 官网有详细的配置说明和主题下载,有兴趣的可以看看 ...
等你来答 知乎直答 切换模式 登录/注册 Abcd 要么忙着活,要么忙着死 Windows终端配置 | 上班没事干摸会鱼,搞一个舒服的Windows终端 使用软件 Windows Terminal + Oh My Posh + git 发布于 2023-05-17 10:57・IP 属地北京 写下你的评论... ...
在PowerShell 中安装 Posh-Git 和 Oh-My-Posh 在执行这一步前,先确保你安装了 git 在这一步中,我们会安装 Posh-Git 和 Oh-My-Posh: 在PoweShell 窗口中,用 Terminal 打开 PowerShell 也行,执行以下命令 代码语言:javascript 代码运行次数:0 复制 ...
Git(true) - 0 ms Run duration: 103.115121ms Cache path: /home/heaths/.cache/oh-my-posh Config path: /home/heaths/.config/oh-my-posh/theme.omp.yml Logs: �[38;2;191;207;240m[DEBUG] �[38;2;156;231;201m17:07:29.847 �[0mcommand.go:execute:989�[38;2;156;231;201m Γ...