-
Notifications
You must be signed in to change notification settings - Fork 0
/
systemsetup.sh
81 lines (64 loc) · 2.53 KB
/
systemsetup.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
# brew initial setup
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew upgrade
# brew stuff
brew install git
brew install coreutils
brew install jq
brew install zsh
brew install node
brew install python
brew install hub
brew install the_silver_searcher
# cask stuff
brew cask install pycharm
brew cask install spotify
brew cask install spectacle
brew cask install sublime-text
brew cask install visual-studio-code
brew cask install telegram-desktop
brew cask install iterm2
brew cask install macdown
brew cask install google-chrome
brew cask install gpgtools
# remove unused stuff after all those installs
brew cleanup
# setup virtualenvwrapper
pip install virtualenvwrapper
# zsh setup
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
# change some osx defaults
# ask for password after lock immediately
defaults write com.apple.screensaver 'askForPassword' -int 1
defaults write com.apple.screensaver 'askForPasswordDelay' -int 0
# finder stuff
defaults write com.apple.Finder AppleShowAllFiles YES
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.finder ShowPathbar -bool true
# fast key repeat
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 15
# keyboard shortcut cmd + < for Move focues to next window within same application
defaults write com.apple.symbolichotkeys.plist AppleSymbolicHotKeys -dict-add 27 "{enabled = 1; value = { parameters = (60, 50, 1048576); type = 'standard'; }; }"
# natual scrolling off
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
# git configs
git config --global core.editor "code --wait --new-window"
git config --global merge.ff false
git config --global user.name "Berend Kapelle"
git config --global push.followTags true
git config --global pull.rebase true
git config --global commit.gpgsign true
git config --global core.excludesfile '~/.gitignore'
git config --global push.default current
git config --global fetch.prune true
git config --global diff.tool diffmerge
git config --global difftool.diffmerge.cmd "code --wait --diff $LOCAL $REMOTE"
git config --global merge.tool diffmerge
git config --global mergetool.diffmerge.trustExitCode true
git config --global mergetool.diffmerge.cmd "/usr/local/bin/diffmerge --merge --result=\"\$MERGED\" \"\$LOCAL\" \"\$BASE\" \"\$REMOTE\""
git config --global mergetool.keepBackup false
mkdir -p "~/workspace/own"
ln -s $(pwd)/env.sh ~/env.sh
ln -s $(pwd)/.zshrc ~/.zshrc