mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 13:55:45 +02:00
powerline.zsh: squelch which output. (#2176)
If powerline-config isn't on $PATH, GNU which will output "no powerline-config in ($PATH)" to stderr, which we previously weren't silencing.
This commit is contained in:
parent
8f0d3f8bd2
commit
57aea1e400
@ -197,7 +197,7 @@ _powerline_add_widget() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if test -z "${POWERLINE_CONFIG_COMMAND}" ; then
|
if test -z "${POWERLINE_CONFIG_COMMAND}" ; then
|
||||||
if which powerline-config >/dev/null ; then
|
if which powerline-config >/dev/null 2>/dev/null ; then
|
||||||
typeset -g POWERLINE_CONFIG_COMMAND=powerline-config
|
typeset -g POWERLINE_CONFIG_COMMAND=powerline-config
|
||||||
else
|
else
|
||||||
typeset -g POWERLINE_CONFIG_COMMAND="${_POWERLINE_SOURCED:h:h:h:h}/scripts/powerline-config"
|
typeset -g POWERLINE_CONFIG_COMMAND="${_POWERLINE_SOURCED:h:h:h:h}/scripts/powerline-config"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user