reorganization and documentation
This commit is contained in:
parent
042db5bcea
commit
a6e82c4b12
94 changed files with 1353 additions and 26 deletions
|
@ -0,0 +1,33 @@
|
|||
oh-my-posh init pwsh --config "~\.config\omp\lambda.omp.json" | Invoke-Expression
|
||||
|
||||
# Colors
|
||||
Set-PSReadlineOption -Colors @{
|
||||
"InlinePrediction"="`e[90m"
|
||||
"Command"="`e[96m"
|
||||
"Parameter"="`e[95m"
|
||||
"Operator"="`e[95m"
|
||||
"String"="`e[93m"
|
||||
"Variable"="`e[94m"
|
||||
}
|
||||
|
||||
# Binds
|
||||
## Ctrl+f = Tab
|
||||
Set-PSReadLineKeyHandler -Key 'Ctrl+f' -Function TabCompleteNext
|
||||
Set-PSReadLineKeyHandler -Key 'Ctrl+g' -Function AcceptSuggestion
|
||||
|
||||
## Make up/down search history
|
||||
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
|
||||
Set-PSReadLineKeyHandler -Key 'UpArrow' -Function HistorySearchBackward
|
||||
Set-PSReadLineKeyHandler -Key 'DownArrow' -Function HistorySearchForward
|
||||
|
||||
## Ctrl+d = Exit
|
||||
Set-PSReadLineKeyHandler -Key 'Ctrl+d' -Function DeleteCharOrExit
|
||||
|
||||
# Aliases
|
||||
Set-Alias neofetch pwshfetch-test-1
|
||||
Set-Alias which Get-Command
|
||||
|
||||
# Environment
|
||||
[Environment]::SetEnvironmentVariable("GIT_SSH", "$((Get-Command ssh).Source)", [System.EnvironmentVariableTarget]::User)
|
||||
[Environment]::SetEnvironmentVariable("EDITOR", "nano", [System.EnvironmentVariableTarget]::User)
|
||||
[Environment]::SetEnvironmentVariable("BAT_THEME", "base16", [System.EnvironmentVariableTarget]::User)
|
Loading…
Add table
Add a link
Reference in a new issue