Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

show git branch on terminal on mac

# Git branch in prompt.parse_git_branch() {git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/ [1]/'}export PS1="u@h W[33[01;33m]$(parse_git_branch)[33[00m] $ "
Comment

PREVIOUS NEXT
Code Example
Shell :: install nmap 
Shell :: curl get url https 
Shell :: know committed files by author 
Shell :: untrack lfs file 
Shell :: list all commits for repo api github 
Shell :: immutable byte ssh 
Shell :: tar archive all files in directory 
Shell :: macos git set vscode as editor 
Shell :: git exit commit message 
Shell :: c linux compiler 
Shell :: better wget 
Shell :: git warning redirecting to 
Shell :: how to clear background jobs 
Shell :: docker swarm get nodes 
Shell :: zsh shell 
Shell :: use github.com/stretchr/testify/assert 
Shell :: change keyboard layout linux 
Shell :: Command to find os version of Webserver in nmap 
Shell :: run index.js 
Shell :: download dropbox on linux 
Shell :: linux shard a file into smaller files 
Shell :: open jar file with command prompt 
Shell :: install git on windows 10 
Shell :: ubuntu install brew 
Shell :: windows open port firewall cmd 
Shell :: git graph command 
Shell :: windows openssh passwordless login 
Shell :: gitignore 
Shell :: vscode extension generate vsix 
Shell :: git copy folder from another branch 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =