-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·92 lines (70 loc) · 2.52 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/env bash
#Change computer name
sudo scutil --set ComputerName "Nebula"
sudo scutil --set HostName "Nebula"
sudo scutil --set LocalHostName "Nebula"
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "Nebula"
#Prepare ssh repo
mkdir ~/.ssh
chmod 700 ~/.ssh
#Install Homebrew
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap homebrew/cask-cask
ln -s $(pwd)/Development/dotfiles/env/.gitconfig ~/.
ln -s $(pwd)/Development/dotfiles/env/.gitignore ~/.
ln -s $(pwd)/Development/dotfiles/env/.aliases ~/.
#Install ZSH
brew install zsh zsh-completions
brew cask install iterm2
chsh -s /bin/zsh
#Install utils
brew install terminal-notifier tmate htop the_silver_searcher glances unrar p7zip gpg
brew cask install iina whatsapp dropbox spotify transmission the-unarchiver appcleaner docker
#Install languages
brew install go crystal node
#Install dev tools
brew install mkcert
brew cask install slack insomnia tableplus sequel-pro ngrok visual-studio-code
#Install symfony cli
curl -sS https://get.symfony.com/cli/installer | bash
#Install Python 3
#brew install python
#Install devops tools
brew install terraform ansible
#Install composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
#Remove apache
sudo apachectl -k stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
#Update PHP
brew install [email protected]
brew cleanup
#Install prompt and fonts
npm install --global pure-prompt
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
#Update osx conf
defaults write com.apple.Terminal FocusFollowsMouse -string YES
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 1
#defaults write NSGlobalDomain InitialKeyRepeat -int 10
# Keep folders on top when sorting by name
defaults write com.apple.finder _FXSortFoldersFirst -bool true
# When performing a search, search the current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Make dock transparent
defaults write com.apple.dock hide-mirror -bool true
#Install Oh My ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
rm -f .zshrc
ln -s $(pwd)/Development/dotfiles/env/.zshrc ~/.
sudo shutdown -r now