Powerline: Bash Powerline์— git ๋ธŒ๋žœ์น˜ ์ •๋ณด๊ฐ€ ํ‘œ์‹œ๋˜์ง€ ์•Š์ง€๋งŒ vi๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2013๋…„ 02์›” 07์ผ  ยท  20์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: powerline/powerline

Screen Shot 2013-02-06 at 5 35 17 PM
ํ•˜์ง€๋งŒ vi set.py๋ฅผ ์ˆ˜ํ–‰ํ•˜๋ฉด git branch info๊ฐ€ ํ‘œ์‹œ๋ฉ๋‹ˆ๋‹ค.
Screen Shot 2013-02-06 at 5 36 12 PM

๋‚ด vimrc์—๋Š” ๋‹ค์Œ์ด ์žˆ์Šต๋‹ˆ๋‹ค.
. /Users/felix/Personalization/powerline/powerline/bindings/bash/powerline.sh

OSX 10.8.2์—์„œ iterm2 1.0.0.20130204- ๋ฐค๋งˆ๋‹ค ์‹คํ–‰

๋˜ํ•œ ๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ๋‚ด ํ”„๋กฌํ”„ํŠธ์— ์„œ๋ฒ„ ์ •๋ณด๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์•Œ๋ ค์ค„ ์ˆ˜ ์žˆ๋‹ค๋ฉด ์ข‹์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

cshell sconfiguration error bug

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

Google ์‚ฌ์šฉ์ž :

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

๊ตฌ์„ฑ์ด ๋ณ‘ํ•ฉ๋˜๊ธฐ ๋•Œ๋ฌธ์— ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

๋ชจ๋“  20 ๋Œ“๊ธ€

์‚ฌ์šฉ์ž ๊ตฌ์„ฑ์—์„œ default_leftonly ํ…Œ๋งˆ๋ฅผ ํ™œ์„ฑํ™”ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๊ทธ๋ ‡๊ฒŒํ•˜๋ ค๊ณ ํ–ˆ์ง€๋งŒ "๋‚ด ์‚ฌ์šฉ์ž ๊ตฌ์„ฑ์„ ๋ณ€๊ฒฝ"ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ๋ชจ๋ฅด๊ฒ ์Šต๋‹ˆ๋‹ค.
์†Œ์Šค์—์„œ powerline์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค ( "pip install --user -e / home / daniel / workspace / powerline"์„ ์ˆ˜ํ–‰ํ•˜๊ณ  ". /home/daniel/workspace/powerline/powerline/bindings/bash/powerline.sh"์ถ”๊ฐ€). .

ํ”„๋กฌํ”„ํŠธ์—์„œ git ๋ธŒ๋žœ์น˜๋ฅผ ์–ป์œผ๋ ค๋ฉด ๋ฌด์—‡์„ ๋ณ€๊ฒฝํ•ด์•ผํ•ฉ๋‹ˆ๊นŒ?

์™€์šฐ, ๋ฐฉ๊ธˆ ๋ฌธ์„œ (https://powerline.readthedocs.org/en/latest/configuration.html)๋ฅผ ์ฝ๊ณ  ์ดํ•ดํ–ˆ์Šต๋‹ˆ๋‹ค! (์œ„ ๋Œ“๊ธ€์— ๋Œ€ํ•ด ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค : S)

@danieltdt ๋ฌธ์„œ๊ฐ€ ํ˜ผ๋ž€ ์Šค๋Ÿฝ์Šต๋‹ˆ๋‹ค. ์–ด๋–ค ํŒŒ์ผ์„ ๋ณ€๊ฒฝํ• ์ง€ (๊ทธ๋ฆฌ๊ณ  ๋ฌด์—‡์„ ๋ณ€๊ฒฝํ•ด์•ผํ•˜๋Š”์ง€) ์•Œ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

@DanielGGordon ๋ฉ”์ธ config.json์„ ์ˆ˜์ •ํ•˜๊ฑฐ๋‚˜ ๋กœ์ปฌ ๋ณต์‚ฌ๋ณธ (~ / .config / powerline์œผ๋กœ)์„ ๋งŒ๋“ค๊ณ  shell-> theme์„ "_default_"์—์„œ "_default_leftonly_"๋กœ ๋ณ€๊ฒฝํ•˜์‹ญ์‹œ์˜ค.

๊ณ ๋ง™์Šต๋‹ˆ๋‹ค!

๋ชจ๋“  ๋‹จ๊ณ„๋ฅผ ๋”ฐ๋ž์ง€๋งŒ ์—ฌ์ „ํžˆ Fedora 23์—์„œ์ด ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
pip2 (python 2.7.10)์™€ ํ•จ๊ป˜ ์„ค์น˜๋œ powerline-status (2.3)
python2 ๋ฐ python3์— ๋Œ€ํ•ด pygit2 (0.22.1)๊ฐ€ ๋ชจ๋‘ ์žˆ์Šต๋‹ˆ๋‹ค.
~ / .config / powerline / config.json์— ์‚ฌ์šฉ์ž ๊ตฌ์„ฑ์„ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค. coz ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์ž์‹์€ ์—ฌ์ „ํžˆ โ€‹โ€‹์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค

{
  "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"
    }
  }
}

powerline install root / config_files์˜ ๊ธฐ๋ณธ ๊ตฌ์„ฑ .json์„ ํŽธ์ง‘ํ–ˆ์Šต๋‹ˆ๋‹ค.

Google ์‚ฌ์šฉ์ž :

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

๊ตฌ์„ฑ์ด ๋ณ‘ํ•ฉ๋˜๊ธฐ ๋•Œ๋ฌธ์— ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

๋‚˜๋Š” ์‚ฌ์šฉ์ž ์ •์˜ ๋ฌธ์„œ๊ฐ€ ๋™์‹œ์— ์žฅํ™ฉํ•˜๊ณ  ํ˜ผ๋ž€ ์Šค๋Ÿฌ์› ๋‹ค๋Š” ๋ฐ ๋™์˜ํ•ฉ๋‹ˆ๋‹ค. ๋‚ด ์„ค์ •์—์„œ powerline_root ์ด ์–ด๋””์— ์žˆ๋Š”์ง€ ์•„์ง ๋ชจ๋ฆ…๋‹ˆ๋‹ค.

@xenithorb ๊ฐ€ ๋‚˜๋ฅผ ์œ„ํ•ด ์ผํ–ˆ์Šต๋‹ˆ๋‹ค btw ^^

์ผ์ข…์˜ ๋งˆ์Šคํ„ฐ config.json์ด ์žˆ์Šต๋‹ˆ๊นŒ? ๊ทธ๋ฆฌ๊ณ  ~/.config/powerline/config.json ๊ฐ€ ์ผ์น˜ํ•˜๋Š” ํ‚ค๋ฅผ ์žฌ์ •์˜ํ•ฉ๋‹ˆ๊นŒ?

๋‚ด๊ฐ€ ์ฝ์€ ๋ฌธ์„œ๋Š” json ์Šคํ‚ค๋งˆ๋ฅผ ํšจ๊ณผ์ ์œผ๋กœ ๊ต์œกํ•˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

๋” ๋งŽ์€ ์ •๋ณด๋ฅผ ์œ„ํ•ด ์ธํ„ฐ๋„ท ๊ฒ€์ƒ‰์„ ํ•œ ํ›„ ์›น ์‚ฌ์ดํŠธ์—์„œ ์ผ๋ถ€ ์–ธ์–ด๋ฅผ ์ฐพ์•˜์Šต๋‹ˆ๋‹ค. ๋‚˜๋Š” ์ด๊ฒƒ์ด ์‚ฌ์šฉ์ž๊ฐ€ ๊ธฐ๋ณธ / ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ์‹œ์ž‘ํ•˜๋„๋กํ•˜๋Š” ๋ฐฉ๋ฒ•์ด๋ผ๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ ํ•„์š”์— ๋”ฐ๋ผ ํŽธ์ง‘ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” pip --user๋กœ ์„ค์น˜ํ•˜๋ฏ€๋กœ ๋‚ด ๋น„ํŠธ๋Š” ~ / .local /์— ์žˆ์Šต๋‹ˆ๋‹ค.

์ฐธ๊ณ  : ~ / .local / lib /python3.5/ site-packages / ... ๊ฒฝ๋กœ๋Š” ์‹œ์Šคํ…œ ๊ตฌ์„ฑ์— ๋”ฐ๋ผ ๊ฐ€๋ณ€์ ์ž…๋‹ˆ๋‹ค.

mkdir -p ~/.config/powerline && cp -R ~/.local/lib/python3.5/site-packages/powerline/config_files/* ~/.config/powerline/ && cd ~/.config/powerline && ls -alF --color=auto
๊ทธ๋Ÿฐ ๋‹ค์Œ @xenithorb๊ฐ€ ์–ธ๊ธ‰ํ–ˆ๋“ฏ์ด`~ / .config / powerline / config.json``ext` =>`shell` =>`theme` ๊ฐ’์„`default`์—์„œ`default_leftonly`๋กœ ํŽธ์ง‘ํ•ฉ๋‹ˆ๋‹ค. ์˜ˆ :
 {
 "ํ”ํ•œ": {
 "term_truecolor": ๊ฑฐ์ง“
 },
 "ext": {
 "ipython": {
 "colorscheme": "๊ธฐ๋ณธ๊ฐ’",
 "theme": "in",
 "local_themes": {
 "rewrite": "๋‹ค์‹œ ์“ฐ๊ธฐ",
 "out": "out",
 "in2": "in2"
 }
 },
 "pdb": {
 "colorscheme": "๊ธฐ๋ณธ๊ฐ’",
 "theme": "๊ธฐ๋ณธ๊ฐ’"
 },
 "shell": {
 "colorscheme": "๊ธฐ๋ณธ๊ฐ’",
 "theme": " default_leftonly ",
 "local_themes": {
 "continuation": "continuation",
 "์„ ํƒ": "์„ ํƒ"
 }
 },
 "tmux": {
 "colorscheme": "๊ธฐ๋ณธ๊ฐ’",
 "theme": "๊ธฐ๋ณธ๊ฐ’"
 },
 "vim": {
 "colorscheme": "๊ธฐ๋ณธ๊ฐ’",
 "theme": "๊ธฐ๋ณธ๊ฐ’",
 "local_themes": {
 "__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": "๊ธฐ๋ณธ๊ฐ’",
 "theme": "๊ธฐ๋ณธ๊ฐ’"
 }
 }
 }

๋˜ํ•œ Note: ๋ฐ๋ชฌ์ด ์‹คํ–‰ ์ค‘์ด๋ฉด ๋ฐ๋ชฌ์„ ์ค‘์ง€ํ•˜๊ฑฐ๋‚˜ ๋‹ค์‹œ ์‹œ์ž‘ํ•  ๋•Œ๊นŒ์ง€ ~/.config/powerline/* ํŒŒ์ผ์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ์ ์šฉ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ๋ฐ๋ชฌ์ด ps aux | grep powerline ๋กœ ์‹คํ–‰ ์ค‘์ธ์ง€ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค. ์–ด๋Š ์ชฝ์ด๋“  ๋ฐ๋ชฌ์€ powerline-daemon --replace ๋กœ ์‹œ์ž‘ / ๋‹ค์‹œ ์‹œ์ž‘ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด๊ฒƒ์€ ๋‚ด๊ฐ€ ํ•„์š”ํ•œ ๋ช…๋ น์ด์—ˆ์Šต๋‹ˆ๋‹ค.

powerline-daemon --replace

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค @xenithorb

์•ˆ๋…•ํ•˜์„ธ์š”,

git์— ๋Œ€ํ•œ ์ถ”๊ฐ€ ์ •๋ณด๋ฅผ ์–ป๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ? ๋‹ค์Œ ์‚ฌํ•ญ์„ ์•Œ๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค.

  • ๋‚ด ์ €์žฅ์†Œ์—๋Š” ์ปค๋ฐ‹์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
  • ๋‚ด ์ž์‹์„ ์›์ ์— ๋ฐ€์–ด ๋„ฃ์–ด์•ผํ•ฉ๋‹ˆ๋‹ค.

๋‚˜๋Š” ์ด๊ฒƒ์„ https://github.com/jaspernbrouwer/powerline-gitstatus#installation ๋ณธ ์ ์ด ์žˆ์œผ๋ฉฐ ๊ทธ๋Ÿฌํ•œ ๊ฒƒ์ด ์ด๋ฏธ ์ „๋ ฅ์„ ์— ์กด์žฌํ•˜๋Š”์ง€ ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค.

์•„๋‹ˆ์š”, ์–ธ๊ธ‰ ํ•œ ๊ฒƒ๊ณผ ๊ฐ™์€ ํƒ€์‚ฌ ๋ชจ๋“ˆ์„ ์‚ฌ์šฉํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค.

Archlinux Bash ์ „๋ ฅ์„ 

๋ชจ๋“  ๊ฒƒ์€ ๊ณต์‹ ๋ฌธ์„œ์— ์ž์„ธํžˆ ์„ค๋ช…๋˜์–ด

์„ค์น˜ ๋ช…๋ น

$ pacman -S powerline powerline-fonts

์‚ฌ์šฉ์ž ๋ณ„ ๊ตฌ์„ฑ ํด๋” ๋งŒ๋“ค๊ธฐ

$ mkdir -p ~/.config/powerline/

๊ตฌ์„ฑ ํŒŒ์ผ ๋ณต์‚ฌ

$ cp /usr/lib/python3.6/site-packages/powerline/config_files/config.json ~/.config/powerline

ํŒŒ์ด์ฌ ๋ฒ„์ „์ด ๋ณ€๊ฒฝ ๋  ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋‚ด ๊ฒฝ๋กœ์™€ ์ผ์น˜ํ•˜๋Š”์ง€ ํ™•์ธํ•˜๋ ค๋ฉด ๋กœ์ปฌ ๊ฒฝ๋กœ๋ฅผ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.
NB : Arch ์‚ฌ์šฉ์ž์—๊ฒŒ๋Š” ์ „๋ ฅ์„  ์„ค๋ช…์„œ ์˜ powerline_root ์„ธ๊ทธ๋จผํŠธ๊ฐ€ ํ•ด๋‹น ๊ฒฝ๋กœ์— ํ•ด๋‹นํ•ฉ๋‹ˆ๋‹ค. ์–ธ๊ธ‰ํ• ๋งŒํ•œ ๊ฐ€์น˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ…Œ๋งˆ ๋ณ€๊ฒฝ

ext.shell.theme ์†์„ฑ์„ default ์—์„œ default_left_only ํ•ฉ๋‹ˆ๋‹ค.

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

๋ณ€๊ฒฝ ์‚ฌํ•ญ ์ ์šฉ

powerline-daemon --replace

๋˜๋Š” ๋‹จ์ˆœํžˆ ์ƒˆ ์…ธ์„ ๋‹ซ๊ณ  ์—ฝ๋‹ˆ ๋‹ค.

Git ์ƒํƒœ๊ฐ€์žˆ๋Š” Bash Powerline-Deepin Linux 15

(๋ฐ๋น„์•ˆ๊ณผ ์šฐ๋ถ„ํˆฌ๋Š” ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ์ž‘๋™ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค)

image - Deepin Linux Bash Powerline Git Status

TL; DR

pip install powerline-status

wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf

# NOTE: adjust fonts paths properly!
mv PowerlineSymbols.otf /usr/share/fonts/

fc-cache -vf /usr/share/fonts/

mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/

# add this to your .bashrc
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. {powerline-installation-dir}/bindings/bash/powerline.sh

mkdir -p ~/.config/powerline
# NOTE: adjust your {powerline-installation-dir} properly!
cp /{powerline-installation-dir}/config_files/config.json ~/.config/powerline

# edit ~/.config/powerline/config.json to see git status and branch name in prompt
    { ...
         "theme": "default_leftonly",
      ... 
    }

# edit "def __call_()" function in vcs.py (may require sudo)
# vcs.py location --> /{powerline-installation-dir}/segments/common/vcs.py
# change "status_colors=False" --> status_colors=True
# change "ignore_statuses=()" --> ignore_statuses=(["U"]) to ignore untracked files
def __call__(self, pl, segment_info, create_watcher, status_colors=True, ignore_statuses=()):

# FINISH! APPLY CHANGES!
powerline-daemon --replace

๋” ์ž์„ธํ•œ ์ •๋ณด๊ฐ€ ํ•„์š”ํ•˜์‹ญ๋‹ˆ๊นŒ? -> ์š”์ -Deepin Linux (Debian / Ubuntu) ์šฉ Bash ์ „๋ ฅ์„ ์„์œ„ํ•œ 10 ๋‹จ๊ณ„

๋” ์ž์„ธํ•œ ์ •๋ณด๊ฐ€ ํ•„์š”ํ•˜์‹ญ๋‹ˆ๊นŒ? -> ๊ณต์‹ ๋ฌธ์„œ

powerline ์™ธ์— ํ„ฐ๋ฏธ๋„์— git ํ”„๋กฌํ”„ํŠธ๋ฅผ ํ‘œ์‹œํ•˜๋ ค๋ฉด pip install powerline-gitstatus ๋„ํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. ๋˜ํ•œ ๊ท€ํ•˜์˜ ๋ฌธ์ œ์— ๋Œ€ํ•ด Medium์— ๋Œ€ํ•œ ์œ ์šฉํ•œ ๊ฒŒ์‹œ๋ฌผ ์„ ์ฐพ์•˜์Šต๋‹ˆ๋‹ค. ์ด ํŠœํ† ๋ฆฌ์–ผ์€ macOS๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœํ•˜์ง€๋งŒ Ubuntu18.04์—์„œ ๊ทธ์˜ ๋ฐฉ๋ฒ•์„ ํ…Œ์ŠคํŠธํ–ˆ์œผ๋ฉฐ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค! ์ด๊ฒƒ์ด ๋‹น์‹ ์„ ๋„์šธ ๊ฒƒ์ž…๋‹ˆ๋‹ค.

Ubuntu 18.04์—์„œ apt install ๋กœ powerline-gitstatus ์„ (๋ฅผ) ์„ค์น˜ํ•˜๋Š” ๋ฐ ๋ฌธ์ œ๊ฐ€์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ์ €์žฅ์†Œ๊ฐ€ ๋” ์ด์ƒ ์œ ์ง€๋˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜๋„ pip ๋กœ ์„ค์น˜ํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

๋˜ ๋‹ค๋ฅธ ๊ฒƒ์€ ... ๋‚ด .bashrc ํŒŒ์ผ์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
source /usr/share/powerline/bindings/bash/powerline.sh
fi

๋ฐ๋ชฌ๊ณผ ์ด๊ฒƒ์— ๋Œ€ํ•ด์„œ๋Š” ์•„๋ฌด๊ฒƒ๋„ ์—†์Šต๋‹ˆ๋‹ค.

powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1

๋‚ด ์งˆ๋ฌธ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
-๋‚ด .bashrc ํŒŒ์ผ์—๋„ ํ•ด๋‹น ์ค„์„ ์ถ”๊ฐ€ํ•ด์•ผํ•ฉ๋‹ˆ๊นŒ?
- apt remove powerline ํ•˜๊ณ  pip ์„ค์น˜ํ•ด์•ผํ•ฉ๋‹ˆ๊นŒ?

๋˜ ๋‹ค๋ฅธ ๊ฒƒ์€ ... ๋‚ด .bashrc ํŒŒ์ผ์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
source /usr/share/powerline/bindings/bash/powerline.sh
fi

๋ฐ๋ชฌ๊ณผ ์ด๊ฒƒ์— ๋Œ€ํ•ด์„œ๋Š” ์•„๋ฌด๊ฒƒ๋„ ์—†์Šต๋‹ˆ๋‹ค.

powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1

๋‚ด ์งˆ๋ฌธ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
-๋‚ด .bashrc ํŒŒ์ผ์—๋„ ํ•ด๋‹น ์ค„์„ ์ถ”๊ฐ€ํ•ด์•ผํ•ฉ๋‹ˆ๊นŒ?
- apt remove powerline ํ•˜๊ณ  pip ์„ค์น˜ํ•ด์•ผํ•ฉ๋‹ˆ๊นŒ?

pip3์„ ์‚ฌ์šฉํ•˜์—ฌ Powerline-status๋ฅผ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค.

pip3 install powerline-status
pip3 install powerline-gitstatus

๋‹ค์Œ ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ์ƒ์„ฑํ–ˆ์Šต๋‹ˆ๋‹ค.

~/.config/powerline
~/.config/powerline/themes/shell
~/.config/powerline/colorschemes

๊ทธ๋ฆฌ๊ณ  ์œ„์˜ ๋‹ค์–‘ํ•œ ์ฃผ์„์„ ๊ธฐ๋ฐ˜์œผ๋กœ ์ด๋Ÿฌํ•œ ํŒŒ์ผ์„ ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.

~/.config/powerline/colorschemes/default.json
~/.config/powerline/themes/shell/default.json
~/.config/powerline/config.json

์œ„์—์„œ ์ฟผ๋ฆฌ ํ•œ๋Œ€๋กœ ~ / .bashrc์— ๋‹ค์Œ ์ค„์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

# Powerline startup
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
source {{ powerline_location.stdout }}/powerline/bindings/bash/powerline.sh

Ansible์„ ํ†ตํ•ด์ด ๋ชจ๋“  ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜๊ณ  ์žˆ์œผ๋ฏ€๋กœ ๋งˆ์ง€๋ง‰ ์ค„์—๋Š” ๋ณ€์ˆ˜๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

์ด์ œ ๋‚ด Konsole์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

powerline

๋˜ํ•œ Ansible์„ ์‚ฌ์šฉํ•˜์—ฌ Powerline ํŒจ์น˜ ๊ธ€๊ผด์„ ์„ค์น˜ํ•˜๊ณ  ์žˆ์ง€๋งŒ ์ด๋Š”์ด ๋ฌธ์ œ ๋ฐ ์งˆ๋ฌธ์˜ ๋ฒ”์œ„๋ฅผ ๋ฒ—์–ด๋‚ฉ๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰