forked from CKolkey/config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·40 lines (30 loc) · 1.02 KB
/
setup.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
#!/usr/bin/env bash
if ! command -v brew &> /dev/null
then
echo "Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
brew install gh
echo "Logging in with Github"
gh auth login
echo "Installing Brew Bundle"
brew bundle --file="./Brewfile"
echo "Using fish shell"
echo $(which fish) | sudo tee -a /etc/shells
chsh -s $(which fish)
echo "Setting up asdf"
asdf plugin list all
asdf plugin-add direnv
asdf direnv setup --shell fish --version system
echo "Installing language servers for JS"
yarn global add vscode-langservers-extracted typescript-language-server typescript
echo "Applying config settings"
git config --global core.excludesFile '~/.config/git/ignore'
bash defaults.osx
if [[ ! -d "${HOME}/.config" ]]; then
mkdir ~/.config
ln -s ~/.config/hammerspoon/ ~/.hammerspoon
ln -s ~/.config/asdf/config ~/.asdfrc
ln -s ~/.config/rdbg/rdbgrc.rb ~/.rdbgrc.rb
ln -s ~/.config/DefaultKeyBinding.dict ~/Library/KeyBindings/DefaultKeyBinding.dict
fi