-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·72 lines (63 loc) · 2.08 KB
/
setup.sh
File metadata and controls
executable file
·72 lines (63 loc) · 2.08 KB
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
67
68
69
70
71
72
#!/bin/zsh
#
# Env
#
REPO_BASE_DIR=~/Workspace/github.com
# spaceを含む場合はフルパスでないと正しく展開されない...?
VSCODE_BASE_DIR="/Users/morrr/Library/Application Support/Code/User"
#
# Font
#
brew tap homebrew/cask-fonts && brew cask install font-fira-code
brew cask install font-inconsolata
#
# Dock
#
sudo defaults write com.apple.Dock showhidden -boolean true
killall Dock
#
# Symlink config files
#
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.vim ~/.vim
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.vimrc ~/.vimrc
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.gvimrc ~/.gvimrc
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.bash_profile ~/.bash_profile
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.inputrc ~/.inputrc
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.zprofile ~/.zprofile
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.gitconfig ~/.gitconfig
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.gitignore_global ~/.gitignore_global
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.tmux.conf ~/.tmux.conf
ln -sf $REPO_BASE_DIR/morrr/dotfiles/.config/nvim ~/.config/nvim
ln -sf $REPO_BASE_DIR/morrr/dotfiles/vscode.settings.json "$VSCODE_BASE_DIR/settings.json"
ln -sf $REPO_BASE_DIR/morrr/dotfiles/vscode.keybindings.json "$VSCODE_BASE_DIR/keybindings.json"
#
# Zsh
#
# oh-my-zsh
# .zshrcが編集されるので注意
# https://github.com/ohmyzsh/ohmyzsh
# https://github.com/agnoster/agnoster-zsh-theme
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#
# Vim
#
mkdir -p $REPO_BASE_DIR/Shougo/dein.vim
git clone https://github.com/Shougo/dein.vim.git $REPO_BASE_DIR/Shougo/dein.vim
#
# Visual Studio Code
#
# install extensions
# output: $code --list-extensions > vscode.extensions
cat $REPO_BASE_DIR/morrr/dotfiles/vscode.extensions | while read line
do
code --install-extension $line
done
# enable key repeat on macos
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false
#
# Manual
#
# oh-my-zsh, vscodeで使うフォント
# 現状手動でfont-bookに入れてる
# https://github.com/powerline/fonts