Install-Module posh-git -Scope CurrentUser -Force ``` *If prompted to install NuGet or trust the repository, select **Yes** or **Yes to All***. ### 3. Configure Your Profile To ensure posh-git loads every time you open Windows Terminal, you must add it to your PowerShell profile. 1. **Check for a profile:** Run `notepad $PROFILE`. If it asks to create a new file, select **Yes**. 2. **Add the import command:** Paste the following line into the file and save it: ```powershell Import-Module posh-git ``` 3. **Alternative:** You can automate this step by running `Add-PoshGitToProfile -AllHosts` in your terminal. ### 4. Enhance with Nerd Fonts (Optional but Recommended) For the best visual experience—especially if you plan to use themes like [Oh My Posh](https://ohmyposh.dev/) alongside posh-git—you should install a "Nerd Font" that supports Git icons and glyphs. * **Recommended Font:** [Cascadia Code PL]( Use code with caution. powershell
To set up in Windows Terminal, you don't need to "download" a traditional installer file like an .exe . Instead, you install it as a PowerShell module directly through the terminal.
Open Windows Terminal (PowerShell) as Administrator and run the following command to allow scripts to run: powershell
Download ((exclusive)) - Posh-git Windows Terminal
Install-Module posh-git -Scope CurrentUser -Force ``` *If prompted to install NuGet or trust the repository, select **Yes** or **Yes to All***. ### 3. Configure Your Profile To ensure posh-git loads every time you open Windows Terminal, you must add it to your PowerShell profile. 1. **Check for a profile:** Run `notepad $PROFILE`. If it asks to create a new file, select **Yes**. 2. **Add the import command:** Paste the following line into the file and save it: ```powershell Import-Module posh-git ``` 3. **Alternative:** You can automate this step by running `Add-PoshGitToProfile -AllHosts` in your terminal. ### 4. Enhance with Nerd Fonts (Optional but Recommended) For the best visual experience—especially if you plan to use themes like [Oh My Posh](https://ohmyposh.dev/) alongside posh-git—you should install a "Nerd Font" that supports Git icons and glyphs. * **Recommended Font:** [Cascadia Code PL]( Use code with caution. powershell
To set up in Windows Terminal, you don't need to "download" a traditional installer file like an .exe . Instead, you install it as a PowerShell module directly through the terminal. posh-git windows terminal download
Open Windows Terminal (PowerShell) as Administrator and run the following command to allow scripts to run: powershell posh-git windows terminal download