2019-12-14 22:21:34 -05:00
|
|
|
_zimfw_mv() {
|
|
|
|
if command cmp -s ${2} ${1}; then
|
2020-01-09 07:13:31 -05:00
|
|
|
_zimfw_print -PR "<%= okay %>%B${2}:%b Already up to date"
|
2019-12-14 22:21:34 -05:00
|
|
|
else
|
|
|
|
if [[ -e ${2} ]]; then
|
|
|
|
command mv -f ${2}{,.old} || return 1
|
|
|
|
fi
|
|
|
|
command mv -f ${1} ${2} && \
|
2020-01-09 07:13:31 -05:00
|
|
|
_zimfw_print -PR "<%= okay %>%B${2}:%b Updated. Restart your terminal for changes to take effect."
|
2019-12-14 22:21:34 -05:00
|
|
|
fi
|
|
|
|
}
|