Merge pull request #926 from jeyglk/fix/unbound-variables

Prevent unbound variable errors in Powerline
This commit is contained in:
Nils Winkler
2017-03-22 08:40:08 +01:00
committed by GitHub

View File

@@ -2,6 +2,7 @@
THEME_CHECK_SUDO=${THEME_CHECK_SUDO:=true}
function set_color {
set +u
if [[ "${1}" != "-" ]]; then
fg="38;5;${1}"
fi
@@ -13,6 +14,7 @@ function set_color {
}
function __powerline_user_info_prompt {
set +u
local user_info=""
local color=${USER_INFO_THEME_PROMPT_COLOR}
@@ -51,6 +53,7 @@ function __powerline_ruby_prompt {
}
function __powerline_python_venv_prompt {
set +u
local python_venv=""
if [[ -n "${CONDA_DEFAULT_ENV}" ]]; then