From ef75d1cbbfc9fbb9df6dd1400904e5a2a1467e97 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Sat, 12 Mar 2022 11:38:34 +0100 Subject: [PATCH] Add install script --- install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..3aefd63 --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +run_directory=$(dirname "$0") + +echo "Copying rcs to home directory..." +cp $run_directory/bashrc /home/$(whoami)/.bashrc +cp $run_directory/vimrc /home/$(whoami)/.vimrc +cp $run_directory/tmux.conf /home/$(whoami)/.tmux.conf + +echo "Copying rcs to root directory..." +sudo cp $run_directory/bashrc /root/.bashrc +sudo cp $run_directory/vimrc /root/.vimrc +sudo cp $run_directory/tmux.conf /root/.tmux.conf + +echo "Finished install. Exiting..." +exit 0