Browse Source

history: use external `mv` command for HISTFILE migration

This will make sure the actual external command `mv` is used instead of
wrapper function.
master
Indrajit Raychaudhuri 4 years ago committed by Indrajit Raychaudhuri
parent
commit
fb80b17281
  1. 2
      modules/history/init.zsh

2
modules/history/init.zsh

@ -46,7 +46,7 @@ NOTICE: Default path of 'HISTFILE' has changed from '${OLD_HISTFILE/#$HOME/~}'
to '${HISTFILE/#$HOME/~}'. to '${HISTFILE/#$HOME/~}'.
Attempting to rename the existing 'HISTFILE' ... Attempting to rename the existing 'HISTFILE' ...
EON EON
mv -v "$OLD_HISTFILE" "$HISTFILE" command mv -v "$OLD_HISTFILE" "$HISTFILE"
# New 'HISTFILE' does exist and is older than legacy one, just warn. # New 'HISTFILE' does exist and is older than legacy one, just warn.
elif [[ "$OLD_HISTFILE" -nt "$HISTFILE" ]]; then elif [[ "$OLD_HISTFILE" -nt "$HISTFILE" ]]; then

Loading…
Cancel
Save