-
Notifications
You must be signed in to change notification settings - Fork 1
/
install
executable file
·56 lines (41 loc) · 2.04 KB
/
install
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
#!/usr/bin/env bash
ln -sfn "$PWD/git_template" "$HOME/.git_template"
ln -sf "$PWD/gitconfig" "$HOME/.gitconfig"
ln -sf "$PWD/gitignore_global" "$HOME/.gitignore_global"
if [[ ! -f "$HOME/.gitconfig.local" ]]; then
cp "$PWD/gitconfig.local.sample" "$HOME/.gitconfig.local"
fi
ln -sf "$PWD/.tool-versions" "$HOME/.tool-versions"
ln -sfn "$PWD/ctags" "$HOME/.ctags"
ln -sf "$PWD/bashrc" "$HOME/.bashrc"
ln -sf "$PWD/inputrc" "$HOME/.inputrc"
ln -sf "$PWD/asdfrc" "$HOME/.asdfrc"
ln -sf "$PWD/editorconfig" "$HOME/.editorconfig"
ln -sf "$PWD/slate" "$HOME/.slate"
ln -sf "$PWD/gemrc" "$HOME/.gemrc"
ln -sf "$PWD/powconfig" "$HOME/.powconfig"
ln -sf "$PWD/hyper.js" "$HOME/.hyper.js"
ln -sf "$PWD/eslintrc.json" "$HOME/.eslintrc.json"
mkdir -p "$HOME/.config/"
ln -sfn "$PWD/alacritty" "$HOME/.config/alacritty"
ln -sfn "$PWD/fish" "$HOME/.config/fish"
ln -sfn "$PWD/oni2" "$HOME/.config/oni2"
ln -sfn "$PWD/starship.toml" "$HOME/.config/starship.toml"
ln -sfn "$PWD/nvim" "$HOME/.config/nvim"
ln -sfn "$PWD/tmux" "$HOME/.config/tmux"
ln -sfn "$PWD/Sketch" "$HOME/Library/Application Support/com.bohemiancoding.sketch3/Plugins"
ln -sfn "$PWD/vscode" "$HOME/Library/Application Support/Code/User"
mkdir -p "$HOME/.go"
mise plugin add ruby
mise plugin add nodejs
pip3 install wakatime neovim vim-vint codespell --upgrade
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# http://www.idownloadblog.com/2015/01/14/how-to-enable-key-repeats-on-your-mac/
# https://blog.appsignal.com/2019/07/09/productive-procrastination-for-programmers.html?utm_source=boostedblogpost&utm_medium=twitter&utm_campaign=productive_procrastination_dec_2019&utm_content=ruby_audience
defaults write com.apple.dock autohide-time-modifier -float 0.25;killall Dock
defaults write -g NSWindowResizeTime -float 0.003
# https://github.com/wbthomason/packer.nvim/issues/1199#issuecomment-1418695865
ulimit -n 10240
gh extension install github/gh-copilot