From 3c9e020e8ebc252df79ddd5ce36b0af2196f69e8 Mon Sep 17 00:00:00 2001 From: Jay Date: Mon, 18 Jan 2021 22:11:59 +0800 Subject: [PATCH] [feat] add tmux conf link --- mklink.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mklink.sh b/mklink.sh index af10429..1239f0f 100755 --- a/mklink.sh +++ b/mklink.sh @@ -14,6 +14,13 @@ fi ln -sf "`pwd`/.gitconfig" "$HOME/.gitconfig" +if [ -f "$HOME/.tmux.conf" ]; then + # backup old file + mv "$HOME/.tmux.conf" "$HOME/.tmux.conf.old" +fi + +ln -sf "`pwd`/.tmux.conf" "$HOME/.tmux.conf" + if [ ! -d "$HOME/.ssh" ]; then mkdir -p "$HOME/.ssh" fi