Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 91 lines (73 sloc) 2.22 KB
#!/usr/bin/env sh
# Filename: install.sh
# Author: Birger J. Nordølum
# :vim set shiftwidth=2:
### Initialize ###
# Variables
DEBUG=true
DOTFILES=$HOME/.dots
# Detect platform:
if [ "$(uname)" == "Darwin" ]; then
PLATFORM=Mac
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
PLATFORM=Linux
elif [ -n "$COMSPEC" -a -x "$COMSPEC" ]; then
PLATFORM=Windows
fi
# Introduction message
printf "%s\n" "###########################################
################## .dots ##################
###########################################"
if [ ! -x "$(command -v git)" ]; then
printf "%s\n" "Git is not installed, and I won"\""t proceed."
exit 1
fi
# Message that we"ll go ahead
printf "\n%s" "I will now go ahead and configuring your machine"
if [ ! "$DEBUG" = true ]; then
sleep 1
printf "%s" "."
sleep 1
printf "%s" "."
sleep 1
printf "%s\n" "."
fi
# Cloning in the $HOME/.dots folder.
if [ -d "$DOTFILES" ]; then
printf "\n%s\n" "Your dotfiles are already cloned."
else
printf "\n%s\n" "Cloning dotfiles into $DOTFILES ..."
#git clone --depth=1 https://github.com/MindTooth/dots.git $DOTFILES
fi
# Checking for either Xcode (CLT)
if [ ! -d "$(/usr/bin/xcode-select -print-path 2>/dev/null)" ]; then
printf "\n%s\n" "Installing the Command Line Tools (expect a GUI popup):"
sudo /usr/bin/xcode-select --install
printf "\n%s\n" "Press any key when the installation has completed..."
read
fi
# Setup k
printf "\n%s\n" "Setting up various software:"
printf "\n%s\n" "- Git"
# Setup initial folders
#mkdir -p $HOME/.config/git
# Setup Fish Shell
printf "%s\n" "- Fish"
printf "%s\n" " Configuring default shell to Fish."
#echo /usr/local/bin/fish | sudo tee -a /etc/shells > /dev/null
#chsh -s /usr/local/bin/fish
printf "%s\n" "- SSH"
# Setup SSH folder
#mkdir -p $HOME/.ssh
#chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
# Install Homebrew
printf "\n%s\n" "Installing Homebrew:"
# sdiisdaisd
# Adding Brew Bundle for easier formulae installation and fire ahead bundle!
printf "%s\n" "Adding from bundle."
#brew tap homebrew/bundle
#brew bundle
printf "\n%s\n" "Make Vim shine!"
#vim +NeoBundleInstall +qall
# Clonse base16-shells
#git clone --depth=1 https://github.com/chriskempson/base16-shell.git $HOME/.config/base16-shell
Something went wrong with that request. Please try again.