Skip to content

Commit

Permalink
Fix unset error in _lp_hostname_color()
Browse files Browse the repository at this point in the history
I added this one recently. It is quite hard to keep up with these unset
variable errors in a language like this, especially when I can't run set
-u all the time myself because of autocomplete not supporting it.
  • Loading branch information
Rycieos committed Dec 4, 2020
1 parent 6ea54e9 commit b1a3145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liquidprompt
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ _lp_hostname_color() {
;;
esac
else
if [[ -n $lp_chroot ]]; then
if [[ -n ${lp_chroot-} ]]; then
# End the color of the chroot
lp_hostname_color+=${NO_COL}
else
Expand Down

0 comments on commit b1a3145

Please sign in to comment.