From e729aa4e0a63bbda2dedf3b12df402395e8b73e8 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 22 May 2020 13:28:54 -0400 Subject: add bootstrap script for lazy people --- bootstrap.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bootstrap.sh (limited to 'bootstrap.sh') diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..15f5d0e --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +if [[ ! -d ~/.tmux ]]; then + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm +fi +if [[ -f ~/.tmux.conf ]]; then + echo "Old tmux configuration detected, remove it before running." + exit 1 +fi +cat > ~/.tmux.conf << EOF +set-option -g status-position top +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-colortag' +run -b '~/.tmux/plugins/tpm/tpm' +EOF -- cgit v1.2.3