mirror of
https://github.com/paulirish/git-recent.git
synced 2026-09-10 07:26:16 -04:00
Color branch on Windows 10 May 2019 Update
This commit is contained in:
parent
1985391134
commit
b1cb0011af
12
git-recent
12
git-recent
|
|
@ -6,16 +6,18 @@
|
|||
## list all local branches, sorted by last commit, formatted reall purdy
|
||||
##
|
||||
|
||||
# Windows needs more basic format (#8, git-for-windows/git#865)
|
||||
branch='%(color:yellow)%(refname:short)%(color:reset)'
|
||||
spacer='%(color:black) %(color:reset)'
|
||||
|
||||
case $(uname -s) in
|
||||
# As of Windows 10 1903 (May 2019 Update) `column -ts` works as expected
|
||||
MINGW64_NT-10.0-18362*);;
|
||||
|
||||
# Other Windows versions need more basic format (#8, git-for-windows/git#865)
|
||||
CYGWIN*|MINGW*|MSYS*)
|
||||
branch='%(refname:short)'
|
||||
spacer=' '
|
||||
;;
|
||||
*)
|
||||
branch='%(color:yellow)%(refname:short)%(color:reset)'
|
||||
spacer='%(color:black) %(color:reset)'
|
||||
;;
|
||||
esac
|
||||
|
||||
COUNT=0
|
||||
|
|
|
|||
Loading…
Reference in a new issue