Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Bash Powerline not showing git branch info, but vi is working correctly. #186
Comments
|
You have to enable the default_leftonly theme in your user configuration. |
Lokaltog
closed this
Feb 7, 2013
danieltdt
commented
May 13, 2013
|
I tried to do that but I have no idea how to "change my user configuration" :( What should I change to get git branch on my prompt? |
danieltdt
commented
May 15, 2013
|
WOW I have just read the docs (https://powerline.readthedocs.org/en/latest/configuration.html) and understood! ( sorry about the comment above :S ) |
DanielGGordon
commented
Oct 16, 2015
|
@danieltdt that documentation is confusing. I can't figure out which file to change (and what to change) |
ZyX-I
added
t:bug
c:b:shell
s:invalid:configuration error
labels
Oct 19, 2015
Ihsahn
commented
Oct 21, 2015
|
@DanielGGordon Either modify main config.json or make a local copy (into ~/.config/powerline) and change shell->theme from "default" to "default_leftonly" |
DanielGGordon
commented
Oct 21, 2015
|
thanx! |
den-is
commented
Jan 20, 2016
|
I have followed all the steps but still have this problem on Fedora 23: {
"common": {
"term_truecolor": false
},
"ext": {
"ipython": {
"colorscheme": "default",
"theme": "in",
"local_themes": {
"rewrite": "rewrite",
"out": "out",
"in2": "in2"
}
},
"shell": {
"colorscheme": "solarized",
"theme": "default_leftonly",
"local_themes": {
"continuation": "continuation",
"select": "select"
}
},
"tmux": {
"colorscheme": "default",
"theme": "default"
}
}
}Edited main config .json in powerline install root/config_files - still nothing. |
xenithorb
commented
Sep 17, 2016
|
For the people from google: mkdir -p ~/.config/powerline
cat <<-'EOF' > ~/.config/powerline/config.json
{
"ext": {
"shell": {
"theme": "default_leftonly"
}
}
}
EOF
powerline-daemon --replace This works because configs are merged |
marcioAlmada
commented
Dec 28, 2016
|
I agree that the documentation for customization managed to be verbose and confusing at the same time. I still have no idea where is @xenithorb worked for me btw ^^ |
meffect
commented
Mar 11, 2017
|
Are you saying there a master config.json of sorts? And The docs I was reading dont seem to efficaciously educate the json schema |
meffect
commented
Mar 11, 2017
•
|
I found some language on a website after googling for more info. I think this is how it's supposed to be done to get the user started with the base/defaults. Then can edit as needed I happen to install with pip --user , so my bits are in ~/.local/ , note: ~/.local/lib
Then as @xenithorb mentioned, edit ex: {
"common": {
"term_truecolor": false
},
"ext": {
"ipython": {
"colorscheme": "default",
"theme": "in",
"local_themes": {
"rewrite": "rewrite",
"out": "out",
"in2": "in2"
}
},
"pdb": {
"colorscheme": "default",
"theme": "default"
},
"shell": {
"colorscheme": "default",
"theme": "default_leftonly",
"local_themes": {
"continuation": "continuation",
"select": "select"
}
},
"tmux": {
"colorscheme": "default",
"theme": "default"
},
"vim": {
"colorscheme": "default",
"theme": "default",
"local_themes": {
"__tabline__": "tabline",
"cmdwin": "cmdwin",
"help": "help",
"quickfix": "quickfix",
"powerline.matchers.vim.plugin.nerdtree.nerdtree": "plugin_nerdtree",
"powerline.matchers.vim.plugin.commandt.commandt": "plugin_commandt",
"powerline.matchers.vim.plugin.gundo.gundo": "plugin_gundo",
"powerline.matchers.vim.plugin.gundo.gundo_preview": "plugin_gundo-preview"
}
},
"wm": {
"colorscheme": "default",
"theme": "default"
}
}
}
Also |
crewshin
commented
Jul 26, 2017
|
This was the command that I needed.
Thanks @xenithorb |
felixgao commentedFeb 7, 2013
but if I do vi set.py I do see git branch info
in my vimrc i have the following
. /Users/felix/Personalization/powerline/powerline/bindings/bash/powerline.sh
running iterm2 1.0.0.20130204-nightly on OSX 10.8.2
also if someone can tell me how to add server info to my prompt that would be great.