Merge branch 'master' into reorg

This commit is contained in:
js0ny 2024-12-01 07:41:57 +00:00
commit f30ba8a02e
24 changed files with 1002 additions and 45 deletions

View file

@ -4,4 +4,4 @@
${function:wget} = {wget --hsts-file $XDG_CACHE_HOME/wget-hsts $args}
# yarn v1
${function:yarn} = {yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config.yaml $args}
${function:yarn} = {yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config.yaml $args}

View file

@ -6,7 +6,7 @@ Set-PSReadLineOption -PredictionSource HistoryAndPlugin
# Set-PSReadLineOption -ContinuationPrompt "`e[36m CR > " # Use Starship instead
# PSReadLineKeyHandlers
## Colemak hnei
Set-PSReadLineKeyHandler -Chord "n" -Function NextHistory -ViMode Command
Set-PSReadLineKeyHandler -Chord "n" -Function NextHistory -ViMode Command
Set-PSReadLineKeyHandler -Chord "e" -Function PreviousHistory -ViMode Command
Set-PSReadLineKeyHandler -Chord "i" -Function ViForwardChar -ViMode Command
## Similar position to [i] in QWERTY
@ -22,4 +22,7 @@ Set-PSReadLineKeyHandler -Chord "J" -Function ViEndOfGlob -ViMode Command
Set-PSReadLineKeyHandler -Chord "N" -Function ViJoinLines -ViMode Command
Set-PSReadLineKeyHandler -Chord "Control+Oem4" -Function ViCommandMode -ViMode Insert # ^[ to Escape
Set-PSReadLineKeyHandler -Chord "Ctrl+a" -Function BeginningOfLine
Set-PSReadLineKeyHandler -Chord "Ctrl+e" -Function EndOfLine
Set-PSReadLineKeyHandler -Chord "Ctrl+e" -Function EndOfLine
## Use <Tab> to Invoke MenuComplete
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete

View file

@ -6,4 +6,4 @@ if ($IsWindows) {
if (Test-Path($ChocolateyProfile)) { Import-Module "$ChocolateyProfile" }
# WinGet
Import-Module -Name Microsoft.WinGet.CommandNotFound #f45873b3-b655-43a6-b217-97c00aa0db58
}
}

View file

@ -4,9 +4,9 @@ This is the cross-platform PowerShell profile for PowerShell Core
```text
.
├── Aliases.ps1
├── Aliases.ps1
├── Keymap.ps1 # keymaps, optimize for Vi-Mode and Colemak
├── Modules.ps1
├── Modules.ps1
├── Navigation.ps1
├── Prompt.ps1
├── readme.md
@ -15,9 +15,8 @@ This is the cross-platform PowerShell profile for PowerShell Core
1 directory, 7 files
```
| Keymap | Action | Mode |
| --- | --- | --- |
| `^a` | To Beginning of Line | All |
| `^e` | To End of Line | All |
| `^[` | To Normal Mode | Insert |
| Keymap | Action | Mode |
| ------ | -------------------- | ------ |
| `^a` | To Beginning of Line | All |
| `^e` | To End of Line | All |
| `^[` | To Normal Mode | Insert |