Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Add Gitbash branch name to powershell

# In PS
Install-Module posh-git -Scope CurrentUser
# Next
Install-Module oh-my-posh -Scope CurrentUser
#Within PowerShell, run notepad $PROFILE and add these lines to ensure the modules and theme is loaded upon startup.
```
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt
```
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Add #Gitbash #branch #powershell
ADD COMMENT
Topic
Name
1+8 =