mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Make friendly to set -u
This commit is contained in:
parent
9c755511f0
commit
5c1cf2feea
8 changed files with 18 additions and 18 deletions
|
|
@ -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' ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue