-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinstall.sh
36 lines (31 loc) · 963 Bytes
/
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
mkdir ~/.zinit
git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin
autoload -U compaudit
compaudit | xargs chmod g-w
# dotfiles
if [ -f ~/.zshrc ]; then
mv ~/.zshrc ~/.zshrc.backup
fi
if [ -f ~/.zshenv ]; then
mv ~/.zshenv ~/.zshenv.backup
fi
if [ ! -f ~/.z ]; then
touch ~/.z
fi
ln -s ~/.zsh/.zshrc ~/.zshrc
ln -s ~/.zsh/.zshenv ~/.zshenv
ln -s ~/.zsh/.hushlogin ~/.hushlogin
ln -s ~/.zsh/.huskyrc ~/.huskyrc
ln -s ~/.zsh/.nvmrc ~/.nvmrc
ln -s ~/.zsh/.bat.conf ~/.bat.conf
ln -s ~/.zsh/.global_gitignore ~/.gitignore
git config --global core.excludesfile "~/.gitignore"
# Vim
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_basic_vimrc.sh
# KeyBindings
mkdir -p ~/Library/KeyBindings
ln -s ~/.zsh/DefaultKeyBinding.dict ~/Library/KeyBindings/DefaultKeyBinding.dict
# Misc
defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false
git config --global pull.ff only