Skip to content

susumushi/git-user-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-user-switch

command line tool for git user switching

install

make

Display current git user in bash prompt.

Add below code to .bashrc

export BASE_PS1=${PS1}
GETGITUSER () {
        export GITUSER=$(git-user-switch get)
        PS1="(${GITUSER})$BASE_PS1"
}
PROMPT_COMMAND=GETGITUSER

(GituserprofileNickname)user@notepc:~/develop/git-user-switch$

About

command line tool for git user switching

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •