install, configure tmux

This commit is contained in:
Ray Elliott 2020-03-19 20:19:30 +00:00
parent 0518d20daa
commit a67a15bbe0
1 changed files with 24 additions and 0 deletions

24
config/tmux.sh Executable file
View File

@ -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