From 835b6e1737a45464459d8fbf3c0e0c440d8d1635 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Sat, 24 Sep 2022 04:14:15 +0900 Subject: [PATCH] pwsh add $env:LESS --- dotfiles/pwsh/powershell_profile.ps1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dotfiles/pwsh/powershell_profile.ps1 b/dotfiles/pwsh/powershell_profile.ps1 index c8d734a..ff955e0 100644 --- a/dotfiles/pwsh/powershell_profile.ps1 +++ b/dotfiles/pwsh/powershell_profile.ps1 @@ -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) {