Score:0

Powerline does not track git branches

us flag

Stuff:

  • WSL2:Ubuntu 20:04 LTS

  • Bash / FishShell

  • Powerline installed using sudo apt-get install powerline

Problem:

Powerline does not changing dislpayed branch after git checkout <branch_name>. When I do git branch, git shows me that I have switched to the branch but powerline still displaying the previous one. When I disabled powerline from shell config, then branch switching is corectly displaying. I have tried with new created user and it's the same, so it's not problem with .bashrc/ config.fish. Funny thing is that in vim, powerline works correctly. Any hints what can I do and check ? Reinstall powerline does not helped ;)

Score:0
pk flag

If you installed powerline only for your user, edit ./.local/lib/python3.8/site-packages/powerline/config_files/config.json and change

"shell": {                                                                                                                                                                                     
   "colorscheme": "default",                                                                                                                                                              
   "theme": "default",                                                                                                                                                           
   "local_themes": {                                                                                                                                                                      
      "continuation": "continuation",                                                                                                                                                
      "select": "select"                                                                                                                                                             
   }                                                                                                                                                                                      
},

to

"shell": {                                                                                                                                                                                     
   "colorscheme": "default",                                                                                                                                                              
   "theme": "default_leftonly",                                                                                                                                                           
   "local_themes": {                                                                                                                                                                      
      "continuation": "continuation",                                                                                                                                                
      "select": "select"                                                                                                                                                             
   }                                                                                                                                                                                      
},

Also check if the powerline daemon is running and restart it.

ps aux | grep powerline
powerline-daemon --replace
Maciej Adamski avatar
us flag
It does not help :(. I changed python version from 3.8.10 to 3.9.9 - not helped nethier. Any ideas what can I check / test ?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.