-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·66 lines (55 loc) · 2.31 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
#!/bin/bash
echo "Setting up my mac..."
# Check for Homebrew and install if we don't have it
if test ! $(which brew); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
brew update
brew analytics off
brew bundle install -v
# Install node
nvm install stable
# Set dotfile root to directory of this script
DOTFILE_ROOT=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Create Folders
mkdir -p $HOME/.config
mkdir -p $HOME/.config/sheldon
mkdir -p $HOME/.config/wezterm
mkdir -p $HOME/.zsh
# Compile karabiner rules
deno run --allow-write ./karabiner/karabiner.ts
# Symlinks
ln -sfn $DOTFILE_ROOT/.editorconfig $HOME/.editorconfig
ln -sfn $DOTFILE_ROOT/.gitconfig $HOME/.gitconfig
ln -sfn $DOTFILE_ROOT/ssh/config $HOME/.ssh/config
ln -sfn $DOTFILE_ROOT/ssh/rc $HOME/.ssh/rc
ln -sfn $DOTFILE_ROOT/nvim $HOME/.config/nvim
ln -sfn $DOTFILE_ROOT/starship/starship.toml $HOME/.config/starship.toml
ln -sfn $DOTFILE_ROOT/vscode/settings.json $HOME/Library/Application\ Support/Code/User/settings.json
ln -sfn $DOTFILE_ROOT/vscode/keybindings.json $HOME/Library/Application\ Support/Code/User/keybindings.json
ln -sfn $DOTFILE_ROOT/vscode/custom.css $HOME/Library/Application\ Support/Code/User/custom.css
ln -sfn $DOTFILE_ROOT/vscode/snippets $HOME/Library/Application\ Support/Code/User/snippets
ln -sfn $DOTFILE_ROOT/zsh/.zshrc $HOME/.zshrc
ln -sfn $DOTFILE_ROOT/zsh/plugins $HOME/.zsh/plugins
ln -sfn $DOTFILE_ROOT/sheldon/plugins.toml $HOME/.config/sheldon/plugins.toml
ln -sfn $DOTFILE_ROOT/scripts $HOME/scripts
ln -sfn $DOTFILE_ROOT/helix $HOME/.config/helix
ln -sfn $DOTFILE_ROOT/zellij $HOME/.config/zellij
ln -sfn $DOTFILE_ROOT/atuin $HOME/.config/atuin
ln -sfn $DOTFILE_ROOT/wezterm/.wezterm.lua $HOME/.wezterm.lua
ln -sfn $DOTFILE_ROOT/wezterm/themes $HOME/.config/wezterm/colors
ln -sfn $DOTFILE_ROOT/karabiner/karabiner.json $HOME/.config/karabiner/karabiner.json
# Install VSCode Extensions
# extensions.list contains the output from "code --list-extensions"
while read EXTENSION
do
case $EXTENSION in
''|\#*) continue ;;
esac
echo "Install VSCode Extension: $EXTENSION"
code --install-extension $EXTENSION
done < $DOTFILE_ROOT/vscode/extensions.list
# Setup macos defaults
source ./macos/defaults.sh
# Setup macos dock
source ./macos/dock.sh