2013-11-24 17:52:33 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2013-12-31 13:54:47 +00:00
|
|
|
# install xcode and other software from the app store
|
|
|
|
# everything neccessary first - command line tools
|
|
|
|
xcode-select --install
|
|
|
|
|
2016-03-10 13:51:26 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
|
|
|
|
2013-12-31 13:54:47 +00:00
|
|
|
# install homebrew
|
2016-03-10 13:51:26 +00:00
|
|
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
2013-12-31 13:54:47 +00:00
|
|
|
brew doctor
|
|
|
|
|
|
|
|
# brew paths
|
|
|
|
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
|
|
|
|
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
|
|
|
|
|
|
|
|
# install some neccessary brew packages
|
2014-12-16 17:21:41 +00:00
|
|
|
brew install clipper
|
2016-12-19 21:30:25 +00:00
|
|
|
brew install fzf
|
2014-07-18 16:30:36 +00:00
|
|
|
brew install git
|
2017-02-10 13:51:13 +00:00
|
|
|
brew install koekeishiya/formulae/kwm
|
|
|
|
brew install koekeishiya/formulae/khd
|
2014-07-18 16:30:36 +00:00
|
|
|
brew install tmux
|
|
|
|
brew install zsh
|
2016-12-30 13:49:25 +00:00
|
|
|
brew install neovim/neovim/neovim
|
2016-12-08 21:36:23 +00:00
|
|
|
brew install python3
|
2016-12-25 17:38:08 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2013-12-31 13:54:47 +00:00
|
|
|
|
2017-01-06 22:26:44 +00:00
|
|
|
# install all submodules
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
read -p "Press any key to continue... " -n1 -s
|
|
|
|
|
|
|
|
# link the dotfiles
|
|
|
|
mkdir ~/.config
|
|
|
|
ln -s ~/dotfiles/agignore ~/.agignore
|
|
|
|
ln -s ~/dotfiles/nvim ~/.config/nvim
|
|
|
|
ln -s ~/dotfiles/editorconfig ~/.editorconfig
|
|
|
|
ln -s ~/dotfiles/gemrc ~/.gemrc
|
|
|
|
ln -s ~/dotfiles/gitconfig ~/.gitconfig
|
|
|
|
ln -s ~/dotfiles/gitignore ~/.gitignore
|
|
|
|
ln -s ~/dotfiles/khdrc ~/.khdrc
|
|
|
|
ln -s ~/dotfiles/kwm ~/.kwm
|
2017-04-13 05:19:45 +00:00
|
|
|
ln -s ~/dotfiles/ruby-version ~/.ruby-version
|
2017-01-06 22:26:44 +00:00
|
|
|
ln -s ~/dotfiles/tmux.conf ~/.tmux.conf
|
|
|
|
ln -s ~/dotfiles/zsh ~/.zsh
|
|
|
|
ln -s ~/dotfiles/zsh/zshrc ~/.zshrc
|
2016-12-25 17:38:08 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2016-02-17 11:13:12 +00:00
|
|
|
|
2016-12-19 21:30:25 +00:00
|
|
|
# install fzf
|
|
|
|
/usr/local/opt/fzf/install
|
2016-12-25 17:38:08 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2016-12-19 21:30:25 +00:00
|
|
|
|
2016-12-08 21:36:23 +00:00
|
|
|
# this is the minimal software and fonts used
|
2014-07-18 16:30:36 +00:00
|
|
|
brew cask install forklift
|
2017-01-05 16:51:01 +00:00
|
|
|
brew cask install nextcloud
|
2016-02-17 14:40:12 +00:00
|
|
|
brew cask install caskroom/fonts/font-hack
|
2016-12-25 17:38:08 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
|
|
|
|
2016-03-10 13:51:26 +00:00
|
|
|
brew tap homebrew/services
|
2014-01-01 16:07:20 +00:00
|
|
|
|
2016-12-08 21:36:23 +00:00
|
|
|
# clipper + kwm/khd
|
2016-03-10 13:51:26 +00:00
|
|
|
mkdir -p ~/Library/LaunchAgents
|
|
|
|
brew services start clipper
|
2016-10-22 22:54:33 +00:00
|
|
|
brew services start khd
|
|
|
|
brew services start kwm
|
2016-12-25 18:14:15 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2013-12-31 13:54:47 +00:00
|
|
|
|
2017-01-06 22:26:44 +00:00
|
|
|
# install deps + plugins for neovim
|
|
|
|
pip3 install neovim
|
|
|
|
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
|
|
|
|
sh installer.sh ~/.config/nvim/dein
|
2016-12-25 18:14:15 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2017-01-06 22:26:44 +00:00
|
|
|
rm installer.sh
|
2013-11-24 17:52:33 +00:00
|
|
|
|
2014-09-01 18:31:03 +00:00
|
|
|
# set xterm/screen terminals to enable italic fonts in terminal
|
2016-05-25 20:39:53 +00:00
|
|
|
tic ~/dotfiles/other/xterm-256color.terminfo
|
2016-12-25 18:14:15 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2014-09-01 18:31:03 +00:00
|
|
|
|
2017-01-05 12:50:37 +00:00
|
|
|
# set terminal to xterm-256color!
|
|
|
|
# now restart your terminal and hope for the best
|
2016-03-10 13:51:26 +00:00
|
|
|
|
|
|
|
# set zsh to the default
|
|
|
|
sudo vim /etc/shells
|
2016-12-25 18:14:15 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2016-03-10 13:51:26 +00:00
|
|
|
chsh -s /usr/local/bin/zsh
|
2016-12-25 18:14:15 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2016-03-10 13:51:26 +00:00
|
|
|
/usr/bin/env zsh
|
2016-12-25 18:14:15 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2016-03-10 13:51:26 +00:00
|
|
|
sudo mv /etc/zshenv /etc/zprofile
|
2016-12-25 18:14:15 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|
2016-10-22 22:54:33 +00:00
|
|
|
sudo launchctl config user path $PATH
|
2016-12-25 18:14:15 +00:00
|
|
|
read -p "Press any key to continue... " -n1 -s
|