From 1a5c11d914b903731b439b7aef4728f4008ff218 Mon Sep 17 00:00:00 2001 From: "jonas@geiger-natur.de" Date: Fri, 11 Oct 2024 21:23:46 +0200 Subject: [PATCH] Posh-Git added --- DeveloperProfile.ps1 | 4 +++- README.md | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/DeveloperProfile.ps1 b/DeveloperProfile.ps1 index c39a0e7..cd635ba 100644 --- a/DeveloperProfile.ps1 +++ b/DeveloperProfile.ps1 @@ -17,4 +17,6 @@ else Set-PSReadLineOption -PredictionSource History } -Set-PSReadLineOption -PredictionViewStyle ListView \ No newline at end of file +Set-PSReadLineOption -PredictionViewStyle ListView + +Import-Module posh-git \ No newline at end of file diff --git a/README.md b/README.md index 10a6688..8306951 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,22 @@ For this representation you need ` Set-PSReadLineOption -PredictionSource Histor You can also take a look at the [official installation guide](https://github.com/PowerShell/PSReadLine#installation). +### [Posh-Git](https://github.com/dahlbyk/posh-git) + +Provides tab completion for common git commands, branch names, paths and more in Powershell + +> [!IMPORTANT] +> Please check out the [Prerequisites](https://github.com/dahlbyk/posh-git?tab=readme-ov-file#prerequisites) before executing the following command. + +For installation run + +``` +PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force +``` + +then add `Import-Module posh-git` to your [Terminal Profile](#terminal-profile). + +You can also take a look at the [official installation guide](https://github.com/dahlbyk/posh-git?tab=readme-ov-file#installation). ## Terminal Profile