Last active
May 23, 2024 17:29
-
-
Save marilira/96ba9698f5d1f85f72ba5f0aad952de6 to your computer and use it in GitHub Desktop.
PowerShell user profile config
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
# 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