Created
June 16, 2023 18:22
-
-
Save mattdkerr/0a30f8a798eb51bfeffcd60b8de832be to your computer and use it in GitHub Desktop.
Powershell 7 for OMP, Exa, Zoxide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Invoke-Expression (& { (zoxide init powershell | Out-String) }) | |
if (Test-Path alias:ls*) { Remove-Alias ls } | |
function l { exa --git --icons --group-directories-first --ignore-glob="ntuser*|NTUSER*" --grid $args } | |
function ls { exa --git --icons --group-directories-first --ignore-glob="ntuser*|NTUSER*" --grid $args } | |
function ll { exa --git --icons --group-directories-first --ignore-glob="ntuser*|NTUSER*" -l $args } | |
function .. { cd .. } | |
Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1 | |
& ([ScriptBlock]::Create((oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\night-owl.omp.json" --print) -join "`n")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ignores the system files in the user directory