Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
183 views
in Technique[技术] by (71.8m points)

Understanding the git symbols in oh my posh

I have the paradox theme on the terminal using oh my posh. But I can't find anywhere what these symbols mean. I tried using the command $ThemeSettings.GitSymbols but I don't get anything (I'm using the v3). Where should I be looking for?

enter image description here

question from:https://stackoverflow.com/questions/65602969/understanding-the-git-symbols-in-oh-my-posh

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The prompt theming JanDeDobbeleer/oh-my-posh includes themes based on symbols from dahlbyk/posh-git

 [{HEAD-name} S +A ~B -C !D | +E ~F -G !H W]

With:

  • = The local branch in at the same commit level as the remote branch (BranchIdenticalStatus)
  • ↑<num> = The local branch is ahead of the remote branch by the specified number of commits; a git push is required to update the remote branch (BranchAheadStatus)
  • ↓<num> = The local branch is behind the remote branch by the specified number of commits; a git pull is required to update the local branch (BranchBehindStatus)

ABCD represent the index; | (DelimStatus); EFGH represent the working directory

  • + = Added files
  • ~ = Modified files
  • - = Removed files
  • ! = Conflicted files

W represents the overall status of the working directory

  • ! = There are unstaged changes in the working tree (LocalWorkingStatusSymbol)
  • ~ = There are uncommitted changes i.e. staged changes in the working tree waiting to be committed (LocalStagedStatusSymbol)
  • None = There are no unstaged or uncommitted changes to the working tree (LocalDefaultStatusSymbol)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...