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

Prevent unbound variable errors in Powerline
pull/927/head
Nils Winkler 2017-03-22 08:40:08 +01:00 committed by GitHub
commit 21d06b6f29
1 changed files with 3 additions and 0 deletions

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