Created
June 12, 2025 18:41
-
-
Save manuelricci/8ba2d9b3e8b255c6c55cbf8609db6cec to your computer and use it in GitHub Desktop.
Profilo base per PowerShell con supporto a Oh My Posh. Tutorial completo π https://youtu.be/LY4xK9vJ7f8
This file contains hidden or 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
# Modulo per avere le icone nel terminale, installare il modulo con il comando | |
# Install-Module -Name Terminal-Icons -Repository PSGallery | |
Import-Module Terminal-Icons | |
# Modificare il NOME-TEMA con quello che preferisci (trovi la lista completa qui https://ohmyposh.dev/docs/themes) | |
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/NOME-TEMA.omp.json" | Invoke-Expression | |
# Cronologia completamento comandi | |
Set-PSReadLineOption -PredictionSource History | |
Set-PSReadLineOption -PredictionViewStyle ListView | |
Set-PSReadLineOption -EditMode Windows | |
# Funzioni di utility | |
function .. { | |
cd .. | |
} | |
function .... { | |
cd ../../ | |
} | |
function ...... { | |
cd ../../../ | |
} | |
# Funzioni per Git | |
function gac { | |
git add . | |
git commit -m $args | |
} | |
function gcops { | |
git add . | |
git commit --amend --no-edit | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment