From a67a15bbe07e50f21b756697604c8cdce8ba4cd9 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 19 Mar 2020 20:19:30 +0000 Subject: [PATCH] install, configure tmux --- config/tmux.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 config/tmux.sh diff --git a/config/tmux.sh b/config/tmux.sh new file mode 100755 index 0000000..de0c4a8 --- /dev/null +++ b/config/tmux.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +if command -v apt-get ; then + apt-get -y install tmux git +else + echo "Error - no package installer found." + exit 1 +fi + +mkdir -p /home/"$_user"/.config +cd /home/"$_user" +rm -Rf .config/tmux +if [ -h .tmux ] ; then + rm .tmux +elif [ -f .tmux ] ; then + mv .tmux .tmux.backup +fi +su ray -c 'git clone https://git.rayelliott.dev/dots/tmux.git .config/tmux' +su ray -c 'ln -bfs .config/tmux/tmux.conf .tmux.conf' +su ray -c 'ln -bfs .config/tmux/tmux .tmux' +cd .config/tmux +ln -bfs tmux.colours-base16.conf tmux.colours.conf