-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-mac.sh
executable file
·101 lines (88 loc) · 2.88 KB
/
setup-mac.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
93
94
95
96
97
98
99
100
101
#!/bin/bash
# Prior to running this ensure the following are installed:
# Xcode, iTerm 2, Golang
echo "running OSX setup..."
# see http://www.defaults-write.com
#echo "OSX: Disable dashboard"
#defaults write com.apple.dashboard mcx-disabled -boolean YES
echo "OSX: Always show hidden files in Finder"
defaults write com.apple.finder AppleShowAllFiles TRUE
echo "OSX: Display file extensions in Finder"
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
echo "OSX: Display full posix path in OS X Finder title Bar"
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
echo "OSX: Change default view style in Finder to List View"
defaults write com.apple.Finder FXPreferredViewStyle Nlsv
echo "OSX: Disable animations when opening and closing windows"
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
echo "OSX: Make all Mission Control animations faster"
defaults write com.apple.dock expose-animation-duration -float 0.1
echo "OSX: disable shadows on screenshots"
defaults write com.apple.screencapture disable-shadow -bool true
echo "OSX: Enable debug menu in Disk Utility"
defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
echo "OSX: Disable new disks requests for Time Machine"
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
echo "OSX: Disable Dock animations"
defaults write com.apple.dock launchanim -bool false
killall Dock
killall Finder
echo "install homebrew"
if ! [ -x "$(command -v brew)" ]; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew update
fi
brew update
echo "install brew apps"
brew install neovim
brew install git
brew install fzf
#brew install the_silver_searcher
#brew install tree
#brew install gpg2
#brew install mercurial
#brew install openssl
brew install stow
brew install ShellCheck
brew install jq
brew install ShellCheck
brew upgrade `brew outdated`
echo "brew install standard gnu utils"
# The --default-names option will prevent Homebrew from prepending a g to each of the newly installed commands
brew tap homebrew/dupes
brew install coreutils
brew install binutils
brew install diffutils
brew install ed
brew install findutils
brew install gawk
brew install gnu-indent
brew install gnu-sed
brew install gnu-tar
brew install gnu-which
brew install gnutls
brew install grep
brew install gzip
brew install make
brew install watch
brew install wdiff --with-gettext
brew install wget
# beets plugins
brew install ffmpeg
brew install chromaprint
echo "setup dotfiles"
stow bash
stow git
stow nvim
#stow psql
source ~/.bashrc
# python tools (mostly for beets)
pip install --upgrade --user beets
pip install --upgrade --user discogs-client
pip install --upgrade --user pyacoustid
pip install --upgrade --user requests
pip install --upgrade --user pylast
pip install --upgrade --user requests_oauthlib
./go-get.sh
echo "done"