-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup
executable file
·87 lines (72 loc) · 3.23 KB
/
setup
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
#!/bin/bash
DIR=$(dirname "$0")
cd "$DIR"
if [ "$(uname)" == "Darwin" ]; then
sudo xcode-select --install
curl -s "https://get.sdkman.io" | bash
curl -s "https://bun.sh/install" | bash
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
source "${HOME}/.sdkman/bin/sdkman-init.sh"
sdk install java
brew analytics off
# Install the most improtant ones first
brew install stow
./stowsetup
brew install --cask raycast
brew install --cask iterm2
brew install --cask brave-browser
brew install --cask karabiner-elements
# Install the rest
brew bundle --file="./brew/Brewfile"
brew install --cask "./brew/mixed-in-key.rb"
# Set Dock items
OLDIFS=$IFS
IFS=''
apps=(
)
dockutil --no-restart --remove all ${HOME}
for app in "${apps[@]}"; do
echo "Keeping $app in Dock"
dockutil --no-restart --add /Applications/$app.app ${HOME}
done
killall Dock
IFS=$OLDIFS
./.macos
./duti/setfiledefaults
cargo install dutree
npm install -g eslint
npm install -g gatsby-cli
npm install -g svgexport
npm install -g vue
npm install -g yarn
ln -sf $(which python3) /usr/local/bin/python
ln -sf $(which pip3) /usr/local/bin/pip
pip install --upgrade pip
gem install --user-install bundler
gem install --user-install github-pages
gem install --user-install rails
gem install --user-install rake
git -C "${HOME}" clone https://github.com/gpakosz/.tmux.git
ln -sf "${HOME}/.tmux/.tmux.conf" "${HOME}"
git clone --recursive https://github.com/sorin-ionescu/prezto.git ${ZDOTDIR:-$HOME}/.zprezto
git clone https://github.com/tarjoilija/zgen.git "${HOME}/.zgen"
chsh -s /bin/zsh
VIM_RUNTIME_DIR="${HOME}/.vim_runtime"
git clone --depth=1 https://github.com/amix/vimrc.git "${VIM_RUNTIME_DIR}"
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:Glench/Vim-Jinja2-Syntax.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:OmniSharp/omnisharp-server.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:OmniSharp/omnisharp-vim.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:Valloric/YouCompleteMe.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:ap/vim-css-color.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:benmills/vimux.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:editorconfig/editorconfig-vim.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:jceb/vim-orgmode.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:junegunn/fzf.vim.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:mattn/emmet-vim.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:scrooloose/nerdcommenter.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:tmux-plugins/vim-tmux-focus-events.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:tomlion/vim-solidity.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:tpope/vim-dispatch.git
git -C "${VIM_RUNTIME_DIR}/my_plugins" clone [email protected]:vim-airline/vim-airline.git
./bin/ycminstall
fi