НастраиваСм Powerline для bash

1) УстанавливаСм powerline

    git clone https://github.com/b-ryan/powerline-shell
    cd powerline-shell
    sudo python setup.py install

2) ДобавляСм Π² ~/.bashrc

    function _update_ps1() {
        PS1=$(powerline-shell $?)
    }

    if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
        PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
    fi

3) Π‘ΠΎΠ·Π΄Π°Ρ‘ΠΌ ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΎΠ½Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ», провСряСм создался Ρ„Π°ΠΉΠ» ΠΈΠ»ΠΈ Π½Π΅Ρ‚ ΠΈ содСрТимоС. Π€Π°ΠΉΠ» ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ Π½Π΅ Π΄ΠΎΠ»ΠΆΠ΅Π½ Π±Ρ‹Ρ‚ΡŒ пустым.

    mkdir -p ~/.config/powerline-shell && \
    powerline-shell --generate-config > ~/.config/powerline-shell/config.json

4) ДобавляСм(измСняСм) Ρ‚Π΅ΠΌΡƒ Π² Ρ„Π°ΠΉΠ» ΠΊΠΎΠ½Ρ„ΠΈΠ³ΡƒΡ€Π°Ρ†ΠΈΠΈ, созданный Π²Ρ‹ΡˆΠ΅ Ρ‚Π΅ΠΌΡ‹ находятся Π² ΠΏΠ°ΠΏΠΊΠ΅ ~/powerline-shell/powerline-shell/themes

    "theme": "washed"

5) ОбновляСм bash

    source ~/.bashrc
НастраиваСм Powerline для tmux

1) ΠšΠΎΠΏΠΈΡ€ΡƒΠ΅ΠΌ ΠΏΠ»Π°Π³ΠΈΠ½ ΠΌΠ΅Π½Π΅Π΄ΠΆΠ΅Ρ€ tpm

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

2) ДобавляСм Π² ~/.tmux.conf

    # List of plugins
    set -g @plugin 'tmux-plugins/tpm'
    set -g @plugin 'tmux-plugins/tmux-sensible'

    # Other examples:
    # set -g @plugin 'github_username/plugin_name'
    # set -g @plugin 'github_username/plugin_name#branch'
    # set -g @plugin 'git@github.com:user/plugin'
    # set -g @plugin 'git@bitbucket.com:user/plugin'

    # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
    run '~/.tmux/plugins/tpm/tpm'

3) ОбновляСм tmux ΠΊΠΎΠ½Ρ„ΠΈΠ³

  tmux source ~/.tmux.conf

4) ДобавляСм ΠΏΠ»Π°Π³ΠΈΠ½ Π² powerline Π² ~/.tmux.conf

   set -g @plugin 'erikw/tmux-powerline'

5) ЗапускаСм скрипт для установки ΠΏΠ»Π°Π³ΠΈΠ½ΠΎΠ²

    ~/.tmux/plugins/tpm/scripts/install_plugins.sh