pwsh add $env:LESS

This commit is contained in:
qwjyh 2022-09-24 04:14:15 +09:00
parent b5d9207d7b
commit 835b6e1737

View file

@ -91,12 +91,6 @@ function Reset-EncodingSettings {
[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
function Enable-SshAgent {
<#
@ -119,6 +113,12 @@ function Enable-SshAgent {
}
# execute "ssh-add" to add keys
# less options
$env:LESS = "-M -R -S -W -z-4 -x4"
# chezmoi completion
$script = "$HOME\.config\powershell\chezmoi_completion.ps1"
if (Test-Path $script) {