|
|
@ -19,6 +19,9 @@ fi |
|
|
|
|
|
|
|
|
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This makes sure that ctrl+C exits the entire script |
|
|
|
|
|
|
|
trap "exit" INT |
|
|
|
|
|
|
|
|
|
|
|
install_if_needed() { |
|
|
|
install_if_needed() { |
|
|
|
for package in "$@" |
|
|
|
for package in "$@" |
|
|
|
do |
|
|
|
do |
|
|
@ -30,7 +33,7 @@ install_if_needed() { |
|
|
|
sudo apt install -y $package |
|
|
|
sudo apt install -y $package |
|
|
|
;; |
|
|
|
;; |
|
|
|
"arch") |
|
|
|
"arch") |
|
|
|
sudo pacman -S $package |
|
|
|
sudo pacman -S $package --noconfirm |
|
|
|
;; |
|
|
|
;; |
|
|
|
"mac") |
|
|
|
"mac") |
|
|
|
brew install $package |
|
|
|
brew install $package |
|
|
@ -63,25 +66,20 @@ echo "" |
|
|
|
echo "Making sure we've got the basics..." |
|
|
|
echo "Making sure we've got the basics..." |
|
|
|
case $DISTRO in |
|
|
|
case $DISTRO in |
|
|
|
"debian") |
|
|
|
"debian") |
|
|
|
echo "Updating the repositories!" |
|
|
|
install_if_needed make vim tmux zsh git silversearcher-ag |
|
|
|
sudo apt update |
|
|
|
|
|
|
|
sudo apt autoremove |
|
|
|
|
|
|
|
install_if_needed vim tmux zsh git silversearcher-ag |
|
|
|
|
|
|
|
;; |
|
|
|
;; |
|
|
|
"arch") |
|
|
|
"arch") |
|
|
|
echo "Updating the repositories!" |
|
|
|
install_if_needed make vim tmux zsh git the_silver_searcher |
|
|
|
sudo pacman -Syu |
|
|
|
|
|
|
|
install_if_needed vim tmux zsh git the_silver_searcher |
|
|
|
|
|
|
|
;; |
|
|
|
;; |
|
|
|
"mac") |
|
|
|
"mac") |
|
|
|
install_if_needed vim tmux zsh git the_silver_searcher |
|
|
|
install_if_needed make vim tmux zsh git the_silver_searcher |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
|
|
|
|
|
|
|
|
echo "Getting tmux-powerline" |
|
|
|
echo "Getting tmux-powerline" |
|
|
|
mkdir $HOME/.tmux |
|
|
|
mkdir -p $HOME/.tmux |
|
|
|
git clone https://github.com/erikw/tmux-powerline.git $HOME/.tmux/ |
|
|
|
git clone https://github.com/erikw/tmux-powerline.git $HOME/.tmux/tmux-powerline |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
|
|
|
|
|
|
|
|
echo "Copying configuration files" |
|
|
|
echo "Copying configuration files" |
|
|
|