forked from erikdonohoo/mac-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
119 lines (105 loc) · 3.45 KB
/
setup.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/bin/bash
#Last update: May 19, 2015
# Many ideas from: http://blog.apps.npr.org/2013/06/06/how-to-setup-a-developers-environment.html
xcode-select --install
echo "Installing Brew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
echo "Updating Brew"
brew update
echo "Make .ssh folder"
mkdir ~/.ssh
#Bash profile
nano ~/.bashrc
alias ll="ls -al"
export PATH=$HOME/local/bin:$PATH
alias git-branch-clean="git branch --merged | grep -v \"\*\" | grep -v master | grep -v develop | xargs -n 1 git branch -d"
alias git-stash-diff="git stash show -p stash@{0}"
alias vbox-edge-box-cam-attach="VBoxManage controlvm \"IE11 - Win10\" webcam attach .1"
alias vbox-edge-box-cam-detach="VBoxManage controlvm \"IE11 - Win10\" webcam detach .1"
###-begin-npm-completion-###
#
# npm command completion script
#
# Installation: npm completion >> ~/.bashrc (or ~/.zshrc)
# Or, maybe: npm completion > /usr/local/etc/bash_completion.d/npm
#
if type complete &>/dev/null; then
_npm_completion () {
local words cword
if type _get_comp_words_by_ref &>/dev/null; then
_get_comp_words_by_ref -n = -n @ -w words -i cword
else
cword="$COMP_CWORD"
words=("${COMP_WORDS[@]}")
fi
local si="$IFS"
IFS=$'\n' COMPREPLY=($(COMP_CWORD="$cword" \
COMP_LINE="$COMP_LINE" \
COMP_POINT="$COMP_POINT" \
npm completion -- "${words[@]}" \
2>/dev/null)) || return $?
IFS="$si"
}
complete -o default -F _npm_completion npm
elif type compdef &>/dev/null; then
_npm_completion() {
local si=$IFS
compadd -- $(COMP_CWORD=$((CURRENT-1)) \
COMP_LINE=$BUFFER \
COMP_POINT=0 \
npm completion -- "${words[@]}" \
2>/dev/null)
IFS=$si
}
compdef _npm_completion npm
elif type compctl &>/dev/null; then
_npm_completion () {
local cword line point words si
read -Ac words
read -cn cword
let cword-=1
read -l line
read -ln point
si="$IFS"
IFS=$'\n' reply=($(COMP_CWORD="$cword" \
COMP_LINE="$line" \
COMP_POINT="$point" \
npm completion -- "${words[@]}" \
2>/dev/null)) || return $?
IFS="$si"
}
compctl -K _npm_completion npm
fi
###-end-npm-completion-###
source ~/.bash_profile
echo "Installing Cask..."
brew install caskroom/cask/brew-cask
brew upgrade brew-cask && brew cleanup && brew cask cleanup
source ~/.bash_profile
echo "Install apps"
brew cask install google-chrome-beta
brew cask install google-drive
brew cash install virtualbox
brew cask install sequel-pro
brew cask install atom
brew cask install slack
brew cask install java
brew cask install openemu
brew cask install handbrake
brew cask install firefox
brew cask install mongohub
brew cask install vlc
brew install gcc
brew install bash-git-prompt
brew install git bash-completion
echo "Install nvm"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
echo "source ~/.bashrc" >> ~/.bash_profile
source ~/.bash_profile
echo "Install atom plugins"
apm i atom-beautify editorconfig file-icons linter linter-jscs linter-jshint merge-conflicts minimap tabs-to-spaces pigments tag jscs-fixer linter-jsonlint atom-typescript
# Final Steps
# setup terminal (pro, menlo ft 18)
# Copy back in ssh keys
# Copy in openemu folders from google drive