Skip to content

Instantly share code, notes, and snippets.

@mattdkerr
Created June 16, 2023 18:22
Show Gist options
  • Save mattdkerr/0a30f8a798eb51bfeffcd60b8de832be to your computer and use it in GitHub Desktop.
Save mattdkerr/0a30f8a798eb51bfeffcd60b8de832be to your computer and use it in GitHub Desktop.
Powershell 7 for OMP, Exa, Zoxide
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"))
@mattdkerr
Copy link
Author

ignores the system files in the user directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment