mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 08:08:00 +00:00
history: use external mv
command for HISTFILE migration
This will make sure the actual external command `mv` is used instead of wrapper function.
This commit is contained in:
parent
d80e393f78
commit
742c1ea26f
@ -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…
Reference in New Issue
Block a user