-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·61 lines (44 loc) · 1.67 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
#!/bin/bash
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew bundle
# Open hammerspoon
open -a Hammerspoon
# Use hammerspoon configuration
curl -o ~/.hammerspoon/init.lua https://gist.githubusercontent.com/cesalberca/bf06aa9c10b3cfa648284e2ffb7d09c2/raw/31d238ee7b47d06e6cb01f1a803636a2c2a300a4/init.lua
# Install VSCode extensions
code --install-extension esbenp.prettier-vscode
code --install-extension EditorConfig.editorconfig
# Configure iTerm2 profile
defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string "~/dotfiles/iterm2"
defaults write com.googlecode.iterm2.plist LoadPrefsFromCustomFolder -bool true
# Create hushlogin
touch ~/.hushlogin
# Configure fzf and install keybidings
$(brew --prefix)/opt/fzf/install
# Install sdkman
curl -s "https://get.sdkman.io" | bash
source "~/.sdkman/bin/sdkman-init.sh"
# Install oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Powerlevel10k theme
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
# Install zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Configure profile
dir=~/dotfiles
files=".zshrc .gitconfig .p10k.zsh"
# Create a dir to move the configuration files there
cd $dir
for file in $files; do
echo "Creating symlink to $file in home directory."
[ -e ~/$file ] && rm ~/$file
ln -s $dir/$file ~/$file
done
# Change MacOS configuration
source .macos
# Create private-profile
cd ~
touch .private-profile
# Change default shell
chsh -s /bin/zsh