-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall
executable file
·48 lines (39 loc) · 1.37 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
#!/usr/bin/env zsh
# Hostname
HOSTNAME=sofuto
sudo scutil --set ComputerName $HOSTNAME
sudo scutil --set HostName $HOSTNAME
sudo scutil --set LocalHostName $HOSTNAME
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string $HOSTNAME
defaults write -g InitialKeyRepeat -int 10
defaults write -g KeyRepeat -int 1
xcode-select --install
# Prezto
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
# AWS Vault plugin
git clone --recursive [email protected]:blimmer/zsh-aws-vault.git "${ZDOTDIR:-$HOME}/.zprezto/contrib/zsh-aws-vault"
# Dotfiles
DOTFILES=(prompt.omp.json gemrc gitconfig gitignore railsrc zpreztorc zshrc)
for file in $DOTFILES; do
rm -f "$HOME/.$file"
ln -s "$HOME/code/dotfiles/$file" "$HOME/.$file"
done
mkdir "$HOME/.config"
CONF_DIRS=(kitty bat nvim)
for dir in $CONF_DIRS; do
ln -s "$HOME/code/dotfiles/$dir" "$HOME/.config/$dir"
done
mkdir "$HOME/bin"
BINS=(debase solar.sh update vimv)
for bin in $BINS; do
ln -s "$HOME/code/dotfiles/bin/$bin" "$HOME/bin/$bin"
done
# Homebrew
cd "$HOME/code/dotfiles"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew bundle
bat cache --build