This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
install-scripts/pkg-setup/tmux.sh

25 lines
553 B
Bash
Raw Normal View History

2020-03-19 20:19:30 +00:00
#!/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
2020-03-20 14:18:56 +00:00
su "$_user" -c 'git clone https://git.rayelliott.dev/dots/tmux.git .config/tmux'
su "$_user" -c 'ln -bfs .config/tmux/tmux.conf .tmux.conf'
su "$_user" -c 'ln -bfs .config/tmux/tmux .tmux'
2020-03-19 20:19:30 +00:00
cd .config/tmux
ln -bfs tmux.colours-base16.conf tmux.colours.conf