2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-17 09:25:52 +00:00
steffen-dotfiles/install/install.sh

94 lines
2.7 KiB
Bash
Raw Normal View History

#!/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
read -p "Press any key to continue... " -n1 -s
2013-12-31 13:54:47 +00:00
# install homebrew
/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
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-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
# this is the minimal software and fonts used
2014-07-18 16:30:36 +00:00
brew cask install forklift
brew cask install nextcloud
brew cask install caskroom/fonts/font-hack
2016-12-25 17:38:08 +00:00
read -p "Press any key to continue... " -n1 -s
brew tap homebrew/services
2014-01-01 16:07:20 +00:00
# clipper + kwm/khd
mkdir -p ~/Library/LaunchAgents
brew services start clipper
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
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
# set terminal to xterm-256color!
# now restart your terminal and hope for the best
# 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
chsh -s /usr/local/bin/zsh
2016-12-25 18:14:15 +00:00
read -p "Press any key to continue... " -n1 -s
/usr/bin/env zsh
2016-12-25 18:14:15 +00:00
read -p "Press any key to continue... " -n1 -s
sudo mv /etc/zshenv /etc/zprofile
2016-12-25 18:14:15 +00:00
read -p "Press any key to continue... " -n1 -s
sudo launchctl config user path $PATH
2016-12-25 18:14:15 +00:00
read -p "Press any key to continue... " -n1 -s