-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·123 lines (110 loc) · 3.59 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#!/bin/bash
function check_if_executable_exists() {
[[ -x "$(command -v $1)" ]]
}
# Install Homebrew
if ! [[ $(check_if_executable_exists brew) -eq 0 ]]; then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(! $(check_if_executable_exists brew)) && echo "Install script error: $1 is not installed." >&2 && return 1
else
echo "Homebrew already installed"
fi
# Make sure we have homebrew in PATH
# (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/simon/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
echo "Installing Xcode... Might prompt for password"
sudo xcodebuild -license accept
echo "Updating Homebrew..."
brew update
brew tap zdcthomas/tools # for dmux
# make a list and install everything in one command
brew install bat
brew install cloc
brew install cowsay
brew install crystal-lang
brew install ctags
brew install diff-so-fancy
brew install docker-compose
brew install dmux
brew install elixir
brew install fzf
brew install graphviz
brew install htop-osx
brew install jq
brew install koekeishiya/formulae/skhd
brew install kotlin
brew install lolcat
brew install pipes-sh
brew install python
brew install rabbitmq
brew install reattach-to-user-namespace
brew install ripgrep
brew install cmacrae/formulae/spacebar
brew install the_silver_searcher
brew install tmux
brew install tree
brew install vim
brew install watch
brew install yabai
brew install yarn
# make a list and install everything in one command
brew install --cask alfred
brew install --cask android-file-transfer
brew install --cask coconutbattery
brew install --cask discord
brew install --cask docker
brew install --cask evernote
brew install --cask flux
brew install --cask google-chrome
brew install --cask intellij-idea
brew install --cask iterm2
brew install --cask karabiner-elements
brew install --cask lastpass
brew install --cask logi-options-plus
brew install --cask macvim
brew install --cask sizeup
brew install --cask slack
brew install --cask spotify
brew install --cask todoist
brew install --cask vagrant
brew install --cask virtualbox
brew install --cask vlc
brew install --cask whatsapp
# Create directories needed
echo "Creating necessary directories..."
mkdir ~/.git-templates
mkdir -p ~/.config/nvim/
mkdir -p ~/Dev/
cd ~/Dev/
echo "Cloning dotfiles..."
git clone https://github.com/simaoneves/dotfiles.git
# Symlink everything needed
echo "Symlinking dotfiles..."
ln -sF ~/Dev/dotfiles/.bash_profile ~/.bash_profile
ln -sF ~/Dev/dotfiles/.gitconfig ~/.gitconfig
ln -sF ~/Dev/dotfiles/.gvimrc ~/.gvimrc
ln -sF ~/Dev/dotfiles/.vimrc ~/.vimrc
ln -sF ~/Dev/dotfiles/init.lua ~/.config/nvim/init.lua
ln -sF ~/Dev/dotfiles/coc-settings.json ~/.vim/coc-settings.json
ln -sF ~/Dev/dotfiles/.ideavimrc ~/.ideavimrc
ln -sF ~/Dev/dotfiles/.tmux.conf ~/.tmux.conf
ln -sF ~/Dev/dotfiles/.global.gitignore ~/.global.gitignore
ln -sF ~/Dev/dotfiles/.skhdrc ~/.skhdrc
ln -sF ~/Dev/dotfiles/.yabairc ~/.yabairc
ln -sF ~/Dev/dotfiles/.spacebarrc ~/.spacebarrc
ln -sF ~/Dev/dotfiles/.limelightrc ~/.limelightrc
ln -sF ~/Dev/dotfiles/karabiner ~/.config
ln -sF ~/Dev/dotfiles/bin/.git-completion.bash ~/.git-completion.bash
ln -s ~/Dev/dotfiles/git_commit_message.txt ~/.git-templates/git_commit_message.txt
echo "Installing vim plugins..."
vim +PlugInstall +qall
echo "Installing Tmux Plugin Manager..."
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Install RVM
if ! [[ $(check_if_executable_exists "rvm") -eq 0 ]]; then
echo "Installing RVM..."
curl -sSL https://get.rvm.io | bash -s stable --ruby
else
echo "RVM already installed"
fi