-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosx_config.sh
executable file
·58 lines (45 loc) · 1.53 KB
/
osx_config.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
#!/bin/sh
DIR=$(pwd)
CONFIG_HOME=$HOME/.config
APP_SUPPORT=$HOME/Library/ApplicationSupport
source $DIR/utils.sh
prettyecho Apply configs
# Apple's Application Support is an absolute piece of shit
prettyecho Symbolic link for Application Support
rm -rf $APP_SUPPORT
ln -s $HOME/Library/Application\ Support $APP_SUPPORT
# Git
prettyecho Apply Git configs
symlink $DIR/.gitconfig $HOME/.gitconfig
# Zsh
prettyecho Apply Zsh configs
symlink $DIR/.zshrc $HOME/.zshrc
# Kitty
prettyecho Apply Kitty configs
symlink $DIR/kitty/kitty.conf $CONFIG_HOME/kitty/kitty.conf
gitclone git@github.com:folke/tokyonight.nvim.git $CONFIG_HOME/kitty/tokyonight
# Ghostty
prettyecho Apply Ghostty configs
GHOSTTY_CONF=$APP_SUPPORT/com.mitchellh.ghostty
symlink $DIR/ghostty/config $GHOSTTY_CONF/config
symlink $CONFIG_HOME/kitty/tokyonight/extras/ghostty/tokyonight_moon $GHOSTTY_CONF/themes/tokyonight_moon
# Tmux
prettyecho Apply Tmux configs
symlink $DIR/tmux/.tmux.conf $HOME/.tmux.conf
symlink $DIR/tmux/.tmux.sh $HOME/.tmux.sh
# Neovim
prettyecho Apply Neovim configs
symlink $DIR/neovim $CONFIG_HOME/nvim
# Vscodium
prettyecho Apply Vscodium configs
symlink $DIR/vscodium/settings.json $APP_SUPPORT/VSCodium/User/settings.json
symlink $DIR/vscodium/keybindings.json $APP_SUPPORT/VSCodium/User/keybindings.json
sudo chown -R $(whoami) /Applications/VSCodium.app/Contents/MacOS/Electron
# Node.js
prettyecho Enable pnpm
corepack enable pnpm
# Ruby
prettyecho Update RubyGems
export PATH=/opt/homebrew/opt/ruby/bin:$PATH
export GEM_HOME=$HOME/.gem
gem update --system