Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Add branch to git prompt ubuntu wsl

# Add to etc/bash.bashrc or whatever yours is called.
# Resulting prompt:
#	<user> @ <system> ~/<directory> (<branch>)
#	└─ # ▶
export PS1='[33[0;32m][33[0m33[0;32m]u[33[0;36m] @ [33[0;36m]h w[33[0;32m]$(__git_ps1)
[33[0;32m]└─[33[0m33[0;32m] $[33[0m33[0;32m] ▶[33[0m] '
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #Add #branch #git #prompt #ubuntu #wsl
ADD COMMENT
Topic
Name
1+6 =