Linux command
powerline 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start daemon
powerline-daemon --replace
Use with bash
powerline-daemon -q && PROMPT_COMMAND="powerline-bash-prompt"
Check configuration
powerline-lint
Reload configuration
powerline-daemon --kill && powerline-daemon
说明
Powerline is a statusline plugin for vim, tmux, zsh, bash, and other applications. It provides informative, visually appealing status displays showing contextual information such as Git branch and status, Python virtualenv, current working directory, hostname, and battery level. The tool runs as a daemon process for performance, communicating with shell prompts and editor plugins via a client. Configuration files in ~/.config/powerline/ control themes, color schemes, and which segments appear in each context. A powerline-compatible font is required for the special glyphs used in the status bar separators.
参数
- -q, --quiet
- Suppress output.
- --replace
- Replace running daemon.
- --kill
- Kill daemon.
- -p, --config-path _path_
- Configuration path.
FAQ
What is the powerline command used for?
Powerline is a statusline plugin for vim, tmux, zsh, bash, and other applications. It provides informative, visually appealing status displays showing contextual information such as Git branch and status, Python virtualenv, current working directory, hostname, and battery level. The tool runs as a daemon process for performance, communicating with shell prompts and editor plugins via a client. Configuration files in ~/.config/powerline/ control themes, color schemes, and which segments appear in each context. A powerline-compatible font is required for the special glyphs used in the status bar separators.
How do I run a basic powerline example?
Run `powerline-daemon --replace` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -q, --quiet do in powerline?
Suppress output.