pwsh add $env:LESS
This commit is contained in:
parent
b5d9207d7b
commit
835b6e1737
1 changed files with 6 additions and 6 deletions
|
@ -91,12 +91,6 @@ function Reset-EncodingSettings {
|
||||||
[console]::OutputEncoding = [System.Text.Encoding]::Default
|
[console]::OutputEncoding = [System.Text.Encoding]::Default
|
||||||
}
|
}
|
||||||
|
|
||||||
# for chezmoi
|
|
||||||
$Editor = "C:\Users\Owner\AppData\Local\Programs\Microsoft VS Code\Code.exe"
|
|
||||||
|
|
||||||
# oh my posh
|
|
||||||
# oh-my-posh --init --shell pwsh --config ~/AppData/Local/Programs/oh-my-posh/themes/capr4n.omp.json | Invoke-Expression
|
|
||||||
|
|
||||||
# shortcut to enable ssh-agent
|
# shortcut to enable ssh-agent
|
||||||
function Enable-SshAgent {
|
function Enable-SshAgent {
|
||||||
<#
|
<#
|
||||||
|
@ -119,6 +113,12 @@ function Enable-SshAgent {
|
||||||
}
|
}
|
||||||
# execute "ssh-add" to add keys
|
# execute "ssh-add" to add keys
|
||||||
|
|
||||||
|
|
||||||
|
# less options
|
||||||
|
$env:LESS = "-M -R -S -W -z-4 -x4"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# chezmoi completion
|
# chezmoi completion
|
||||||
$script = "$HOME\.config\powershell\chezmoi_completion.ps1"
|
$script = "$HOME\.config\powershell\chezmoi_completion.ps1"
|
||||||
if (Test-Path $script) {
|
if (Test-Path $script) {
|
||||||
|
|
Loading…
Reference in a new issue