-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·44 lines (37 loc) · 2.1 KB
/
bootstrap.sh
File metadata and controls
executable file
·44 lines (37 loc) · 2.1 KB
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
w!/usr/bin/env bash
# install homebrew
if ! command -v brew &> /dev/null
then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# install neovim
if ! command -v nvim &> /dev/null
then
brew install neovim
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
fi
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
# Add VIMRC
mkdir -p ~/.config/nvim
cp init.vim ~/.config/nvim/init.vim
# install iterm2
if [[ ! -d /Applications/iTerm.app ]]; then
#brew cask install iterm2
#curl -L https://iterm2.com/shell_integration/install_shell_integration.sh | bash
curl -O https://raw.githubusercontent.com/morhetz/gruvbox-contrib/master/iterm2/gruvbox-dark.itermcolors
curl -O https://raw.githubusercontent.com/morhetz/gruvbox-contrib/master/iterm2/gruvbox-light.itermcolors
/usr/libexec/PlistBuddy -c 'Delete "Custom Color Presets:Gruvbox Light"' $HOME/Library/Preferences/com.googlecode.iterm2.plist
/usr/libexec/PlistBuddy -c 'Delete "Custom Color Presets:Gruvbox Dark" dict' $HOME/Library/Preferences/com.googlecode.iterm2.plist
/usr/libexec/PlistBuddy -c 'Add "Custom Color Presets:Gruvbox Light" dict' $HOME/Library/Preferences/com.googlecode.iterm2.plist
/usr/libexec/PlistBuddy -c 'Add "Custom Color Presets:Gruvbox Dark" dict' $HOME/Library/Preferences/com.googlecode.iterm2.plist
/usr/libexec/PlistBuddy -c 'Merge "gruvbox-light.itermcolors" "Custom Color Presets:Gruvbox Light"' $HOME/Library/Preferences/com.googlecode.iterm2.plist
/usr/libexec/PlistBuddy -c 'Merge "gruvbox-dark.itermcolors" "Custom Color Presets:Gruvbox Dark"' $HOME/Library/Preferences/com.googlecode.iterm2.plist
# TODO: Figure out how to actually switch to these themes programmatically
fi
if ! command -v omz &> /dev/null
then
KEEP_ZSHRC='yes' sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
cp zshrc ~/.zshrc