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

@ -17,6 +17,6 @@ alias please='sudo'
alias afind='ack-grep -il'
# only define LC_CTYPE if undefined
if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
if [[ -z "${LC_CTYPE:-}" && -z "${LC_ALL:-}" ]]; then
export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
fi