Skip to content

Instantly share code, notes, and snippets.

@marilira
Last active May 23, 2024 17:29
Show Gist options
  • Save marilira/96ba9698f5d1f85f72ba5f0aad952de6 to your computer and use it in GitHub Desktop.
Save marilira/96ba9698f5d1f85f72ba5f0aad952de6 to your computer and use it in GitHub Desktop.
PowerShell user profile config
# Prompt
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt Aliens
# Icons
Import-Module -Name Terminal-Icons
#PSReadLine
Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView
#Fzf
Import-Module PSFzf
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+f' -PSReadlineChordReverseHistory 'Ctrl+r'
# Alias
Set-Alias vim nvim
Set-Alias less 'C:\Program Files\Git\usr\bin\less.exe'
Set-Alias touch New-Item
# Utilities
function which ($command) {
Get-Command -Name $command -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty Path -ErrorAction SilentlyContinue
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment