-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·28 lines (21 loc) · 827 Bytes
/
setup.sh
File metadata and controls
executable file
·28 lines (21 loc) · 827 Bytes
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
#!/bin/sh
set -e
# zsh.
ln -s "${PWD}/zshrc" ~/.zshrc
# Gnutils.
brew install coreutils findutils gnu-tar gnu-sed gawk gnutls gnu-indent gnu-getopt grep
ln -s "${PWD}/dircolors" ~/.dircolors
# Vim.
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'
mkdir -p ~/.config/nvim/ && ln -s "${PWD}/vimrc" ~/.config/nvim/init.vim && ln -s ${PWD}/vim/* ~/.config/nvim/
nvim '+PluginInstall --sync' +q
# Tmux.
brew install tmux
ln -s "${PWD}/tmux.conf" ~/.tmux.conf
# Git.
ln -s "${PWD}/gitconfig" ~/.gitconfig
# VS Code.
cat vscode/extensions.list | xargs -n 1 code --install-extension
ln -s "${PWD}/vscode/settings.json" "${HOME}/Library/Application Support/Code/User/settings.json"