LinuxCommandLibrary

powerline

TLDR

Start daemon

$ powerline-daemon --replace
copy
Use with bash
$ powerline-daemon -q && PROMPT_COMMAND="powerline-bash-prompt"
copy
Check configuration
$ powerline-lint
copy
Reload configuration
$ powerline-daemon --kill && powerline-daemon
copy

SYNOPSIS

powerline ext side [options]
powerline-daemon [options]

DESCRIPTION

Powerline is a statusline plugin for vim, tmux, and shell prompts. It provides informative, beautiful status displays with Git status, virtualenv, and other contextual information.

PARAMETERS

-q, --quiet

Suppress output.
--replace
Replace running daemon.
--kill
Kill daemon.
-p, --config-path path
Configuration path.

EXAMPLES

$ # Start daemon
powerline-daemon -q

# Check config
powerline-lint

# Test shell prompt
powerline shell left

# Install for bash (in .bashrc)
powerline-daemon -q
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
copy

SHELL SETUP (bash)

$ # In ~/.bashrc
if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
    source /usr/share/powerline/bindings/bash/powerline.sh
fi
copy

TMUX SETUP

$ # In ~/.tmux.conf
source /usr/share/powerline/bindings/tmux/powerline.conf
copy

CAVEATS

Requires powerline-compatible font. Configuration in ~/.config/powerline/. Daemon improves performance.

HISTORY

Powerline was created by Kim Silkebækken originally as a vim plugin, later expanded to shells and tmux.

SEE ALSO

starship(1), oh-my-zsh(1), tmux(1)

Copied to clipboard