-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·62 lines (51 loc) · 1.84 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
# install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# restore brew packages
echo "---> Brew restore"
brew tap Homebrew/bundle
cd ~/.dotfiles/brew && brew bundle
cd ~/.dotfiles
echo "---> Brew restore done"
echo ""
echo "---> ZSH"
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
ln -s ~/.dotfiles/zsh/.zshrc ~/.zshrc
ln -s ~/.dotfiles/zsh/zlogin ~/.zlogin
ln -s ~/.dotfiles/zsh/zlogout ~/.zlogout
ln -s ~/.dotfiles/zsh/zpreztorc ~/.zpreztorc
ln -s ~/.dotfiles/zsh/zshenv ~/.zshenv
echo "---> ZSH done"
echo ""
echo "---> Neovim"
mkdir -p ~/.config
ln -s ~/.dotfiles/vim ~/.config/nvim
echo "---> Neovim done"
echo ""
echo "---> Tmux"
ln -s ~/.dotfiles/tmux/.tmux.conf ~/.tmux.conf
echo "---> Tmux done"
echo ""
echo "---> Alacritty"
mkdir -p ~/.config
ln -s ~/.dotfiles/alacritty/alacritty.yml ~/.config/alacritty.yml
echo "---> Alacritty done"
echo ""
echo "---> Fonts"
curl -L https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/UbuntuMono/Original/complete/Ubuntu%20Mono%20Nerd%20Font%20Complete.ttf -o ~/Library/Fonts/Ubuntu\ Mono\ Nerd\ Font\ Complete.ttf
curl -L https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Hack/Regular/complete/Knack%20Regular%20Nerd%20Font%20Complete.ttf -o ~/Library/Fonts/Knack\ Regular\ Nerd\ Font\ Complete.ttf
echo "---> Fonts done"
echo ""
echo "---> tic italic"
tic ~/.dotfiles/iterm/xterm-256color-italic.terminfo
tic -x ~/.dotfiles/tmux/tmux.terminfo
echo "---> tic italic done"
echo ""
echo "---> disable mouse acceleration"
defaults write .GlobalPreferences com.apple.mouse.scaling -1
echo ""
echo "---> ctrl-h fix"
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\177/' > $TERM.ti
tic $TERM.ti
defaults write com.apple.screencapture location ~/Pictures/Screenshots
echo ""
echo "========> Yay, Done!"