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

@ -1,5 +1,5 @@
## Command history configuration
if [ -z "$HISTFILE" ]; then
if [ -z "${HISTFILE:-}" ]; then
HISTFILE=$HOME/.zsh_history
fi
@ -7,7 +7,7 @@ HISTSIZE=10000
SAVEHIST=10000
# Show history
case $HIST_STAMPS in
case ${HIST_STAMPS:-} in
"mm/dd/yyyy") alias history='fc -fl 1' ;;
"dd.mm.yyyy") alias history='fc -El 1' ;;
"yyyy-mm-dd") alias history='fc -il 1' ;;