Skip to content

Is it possible add Commnad() in Header function? #1618

Closed Locked Answered by AnirudhG07
Jaehaks asked this question in 1. Q&A
Discussion options

You must be logged in to vote

If you want to show git branch name in the header, you can check out git.yazi, see how it is implemented there. I think you should make a seperate function and then do Header.children_add(...) for it to work as you want. You can also use starship.yazi, since it automatically shows git branch in a nice formatted way.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jaehaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants