Make friendly to set -u

This commit is contained in:
Steven Shaw 2015-05-11 07:27:21 +00:00
commit 5c1cf2feea
8 changed files with 18 additions and 18 deletions

View file

@ -3,7 +3,7 @@ autoload -U colors && colors
export LSCOLORS="Gxfxcxdxbxegedabagacad"
# Enable ls colors
if [ "$DISABLE_LS_COLORS" != "true" ]
if [ "${DISABLE_LS_COLORS:-}" != "true" ]
then
# Find the option for using colors in ls, depending on the version: Linux or BSD
if [[ "$(uname -s)" == "NetBSD" ]]; then
@ -24,7 +24,7 @@ setopt auto_cd
setopt multios
setopt cdablevars
if [[ x$WINDOW != x ]]
if [[ x${WINDOW:-} != x ]]
then
SCREEN_NO="%B$WINDOW%b "
else