Created
October 8, 2021 10:21
-
-
Save dukex/02b2a983af1e3949cf4016c73ed25ab0 to your computer and use it in GitHub Desktop.
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
Function gplr() { | |
git pull --rebase | |
} | |
Function gpsh() { | |
$branch = git rev-parse --abbrev-ref HEAD | |
git push -u origin $branch | |
} | |
function prompt() { | |
$currentFolder = Split-Path -Path $pwd -Leaf | |
$branch = git rev-parse --abbrev-ref HEAD | |
Write-host ($(if ($branch) { "$branch" } else { '' })) -ForegroundColor DarkBlue -NoNewline | |
Write-host ($(if ($branch) { " " } else { '' })) -NoNewline | |
Write-Host $currentFolder -NoNewline | |
return " > " | |
} | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment