From f8889096a379291218bf52955ef8f8a8a25f1b47 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 29 May 2024 20:22:41 +0200 Subject: Testing --- .config/powershell/Microsoft.PowerShell_profile.ps1 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to '.config/powershell/Microsoft.PowerShell_profile.ps1') diff --git a/.config/powershell/Microsoft.PowerShell_profile.ps1 b/.config/powershell/Microsoft.PowerShell_profile.ps1 index 0f13122..db4d580 100644 --- a/.config/powershell/Microsoft.PowerShell_profile.ps1 +++ b/.config/powershell/Microsoft.PowerShell_profile.ps1 @@ -8,13 +8,13 @@ oh-my-posh init pwsh --config ~/.omp/themes/tokyonight.omp.yaml | Invoke-Express # Dotfiles special git command function global:config { - git --git-dir=$env:USERPROFILE/.cfg --work-tree=$env:USERPROFILE $args + git --git-dir="$env:USERPROFILE\.cfg" --work-tree="$env:USERPROFILE" $args } # Chocolatey profile $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" -if (Test-Path($ChocolateyProfile)) { - Import-Module "$ChocolateyProfile" +if (Test-Path $ChocolateyProfile) { + Import-Module "$ChocolateyProfile" } # PSReadLine extension to provide VI keybindings @@ -27,6 +27,7 @@ Remove-Alias -Force -Name gl Remove-Alias -Force -Name gp Remove-Alias -Force -Name gm +# Custom git functions function gs { git status } function gf { git fetch } function gl { git pull } @@ -37,9 +38,9 @@ function ga { git add } function gcam { git commit -am } function gd { git diff } function gw { git diff --word-diff } -function glog { git logo } -function gdog { git dog } -function gadog { git adog } +function glog { git log } +function gdog { git log --graph --oneline --all } +function gadog { git log --graph --decorate --all } function gb { git branch } function gba { git branch --all } function gco { git checkout } @@ -50,4 +51,3 @@ Invoke-Expression (& { $hook = if ($PSVersionTable.PSVersion.Major -lt 6) { 'prompt' } else { 'pwd' } (zoxide init --hook $hook powershell | Out-String) }) - -- cgit v1.2.3