Depending on the application used it is possible to override configuration. Here is the list:
Vim configuration can be overridden using the following options:
Powerline script has a number of options controlling powerline behavior. Here VALUE always means “some JSON object”.
Overrides options from powerline/config.json. KEY.KEY2.KEY3=VALUE is a shortcut for KEY={"KEY2": {"KEY3": VALUE}}. Multiple options (i.e. -c K1=V1 -c K2=V2) are allowed, result (in the example: {"K1": V1, "K2": V2}) is recursively merged with the contents of the file.
If VALUE is omitted then corresponding key will be removed from the configuration (if it was present).
Overrides options from powerline/themes/ext/THEME_NAME.json. KEY.NESTED_KEY=VALUE is processed like described above, {ext} is the first argument to powerline script. May be passed multiple times.
If VALUE is omitted then corresponding key will be removed from the configuration (if it was present).
Here overrides are controlled by similarly to the powerline script, but values are taken from zsh variables.
Ipython overrides depend on ipython version. Before ipython-0.11 you should pass additional keyword arguments to setup() function. After ipython-0.11 you should use c.Powerline.KEY. Supported KEY strings or keyword argument names:
In addition to the above configuration options you can use $POWERLINE_COMMAND environment variable to tell shell or tmux to use specific powerline implementation and $POWERLINE_CONFIG to tell zsh or tmux where powerline-config script is located. This is mostly useful for putting powerline into different directory.
Note
$POWERLINE_COMMAND appears in shell scripts without quotes thus you can specify additional parameters in bash. In zsh you will have to make $POWERLINE_COMMAND an array parameter to achieve the same result. In tmux it is passed to eval and depends on the shell used. POSIX-compatible shells, zsh, bash and fish will split this variable in this case.
If you want to disable prompt in shell, but still have tmux support or if you want to disable tmux support you can use variables $POWERLINE_NO_{SHELL}_PROMPT/$POWERLINE_NO_SHELL_PROMPT and $POWERLINE_NO_{SHELL}_TMUX_SUPPORT/$POWERLINE_NO_SHELL_TMUX_SUPPORT (substitute {SHELL} with the name of the shell (all-caps) you want to disable support for (e.g. BASH) or use all-inclusive SHELL that will disable support for all shells). These variables have no effect after configuration script was sourced (in fish case: after powerline-setup function was run). To disable specific feature support set one of these variables to some non-empty value.
If you do not want to disable prompt in shell, but yet do not want to launch python twice to get above lines you do not use in tcsh you should set $POWERLINE_NO_TCSH_ABOVE or $POWERLINE_NO_SHELL_ABOVE variable.
If you do not want to see additional space which is added to the right prompt in fish in order to support multiline prompt you should set $POWERLINE_NO_FISH_ABOVE or $POWERLINE_NO_SHELL_ABOVE variables.
Note
Most supported shells’ configuration scripts check for $POWERLINE_CONFIG and $POWERLINE_COMMAND configuration variables being empty. But tcsh configuration script checks for variables being defined, not empty.