From 559b651a40ddc441341e744007383b9eee77e889 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 3 Sep 2020 16:29:45 +0100 Subject: [PATCH] update backup file name --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index ca42491..c847eb6 100755 --- a/install.sh +++ b/install.sh @@ -1,11 +1,11 @@ #!/bin/sh if [ -e "$HOME/.tmux" ] ; then - mv "$HOME/.tmux" "$HOME/.tmux-original" + mv "$HOME/.tmux" "$HOME/.tmux-original-$(date +%s)" fi if [ -e "$HOME/.tmux.conf" ] ; then - mv "$HOME/.tmux.conf" "$HOME/.tmux.conf-original" + mv "$HOME/.tmux.conf" "$HOME/.tmux.conf-original-$(date +%s)" fi ln -s "$HOME/.config/tmux" "$HOME/.tmux"