Skip to content

XXpE3/Powershell_Profile

Repository files navigation

安装

安装 PowerShell 7

支持 PowerShell 7 以上版本

安装组件

Install-Module PSFzf -Scope CurrentUser -AllowPrerelease
Install-Module Get-ChildItemColor -Scope CurrentUser -AllowPrerelease -AllowClobber
Install-Module PSReadLine -Scope CurrentUser -AllowPrerelease -Force
Install-Module Posh-Git -Scope CurrentUser -AllowPrerelease
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json
scoop install git
scoop install fzf
scoop install lua
scoop install z.lua

使用

快捷键绑定

快捷键 说明 Function
ESC 进入 Vi 模式 Vi
上箭头 向上翻阅历史命令 HistorySearchBackward
下箭头 向下翻阅历史命令 HistorySearchForward
Ctrl+p 向上翻阅历史命令 HistorySearchBackward
Ctrl+n 向下翻阅历史命令 HistorySearchForward
Ctrl+a 跳转到行首 BeginningOfLine
Ctrl+e 跳转到行尾 EndOfLine
Ctrl+f 光标向前移动 1 格 ForwardChar
Ctrl+b 光标向后移动 1 格 BackwardChar
Alt+f 跳转到下个单词 ForwardWord
Alt+b 跳转到上个单词 BackwardWord
Tab 补全 Complete
Shift+Tab 弹出补全选择列表 MenuComplete

查看所有快捷键

Get-PSReadLineKeyHandler

About

PowerShell profile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published