3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

git branch情報がpowerlineで表示されない

Posted at

課題

powerline導入時にbranch情報を表示するgit-prompt.shがうまく表示されなかった。
環境: Ubuntu 18.04.2 LTS (Bionic Beaver), bash 4.4.20

解決法

powerlineのrepoに解決方法があった。powerline config fileを書き換える。
issue#186

mkdir -p ~/.config/powerline
cat <<-'EOF' > ~/.config/powerline/config.json
{
    "ext": {
        "shell": {
            "theme": "default_leftonly"
        }
    }
}
EOF
powerline-daemon --replace 

結果

Screenshot_20190731_01.png

見た目がよくなればやる気も出るはず。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?