Skip to content

Instantly share code, notes, and snippets.

@wildcardjoker
wildcardjoker / Update-GitConfig.ps1
Created October 12, 2025 09:00
Set custom git configuration settings and aliases
# Update git configuration with customisations
# Aliases
# Condense git log to one line per commit
git config --global alias.lol 'log --oneline --decorate'
# One-line log showing graph
git config --global alias.graph 'log --oneline --graph --decorate'
# Show dates in reflog
# Import PoshGit
if ($null -ne (Get-Module -Name posh-git -ListAvailable)) {
Write-Host "Importing Posh-Git"
Import-Module Posh-Git
}
else {
Write-Host -ForegroundColor Red "You don't have Posh-Git installed! If you use git, I highly recommend it!`nUse the command 'Install-Module -Name posh-git -Scope AllUsers' from an Admin PowerShell to install "
}
if ($null -ne (Get-Module -Name Terminal-Icons -ListAvailable)) {
@wildcardjoker
wildcardjoker / settings.json
Last active May 25, 2020 03:09
Windows Terminal Settings
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
// You can add more global application settings here.
// To learn more about global settings, visit https://aka.ms/terminal-global-settings