Skip to content

Instantly share code, notes, and snippets.

@manuelricci
Created June 12, 2025 18:41
Show Gist options
  • Save manuelricci/8ba2d9b3e8b255c6c55cbf8609db6cec to your computer and use it in GitHub Desktop.
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
# 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