Skip to content

Commit 5bcf60f

Browse files
author
Rajesh Muppalla
committed
Adding vs-code and removing old deps
1 parent 696469c commit 5bcf60f

File tree

1 file changed

+76
-64
lines changed

1 file changed

+76
-64
lines changed

setup.sh

100755100644
Lines changed: 76 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,24 @@ brews=(
1010
mtr
1111
node
1212
openvpn
13+
postgresql
14+
pgcli
1315
nmap
1416
python
1517
ruby
1618
scala
1719
sbt
1820
tmux
19-
wget
2021
zsh
2122
tree
2223
s3cmd
23-
wget
24+
vim --with-override-system-vi
25+
wget --with-iri
2426
maven
27+
mackup
2528
)
2629

2730
casks=(
28-
adobe-reader
2931
atom
3032
betterzipql
3133
cakebrew
@@ -34,60 +36,61 @@ casks=(
3436
firefox
3537
freemind
3638
google-chrome
37-
google-drive
38-
hosts
3939
intellij-idea-ce
4040
iterm2
4141
kindle
42-
picasa
43-
java
4442
slack
4543
screenhero
4644
skype
47-
teleport
4845
vlc
4946
tunnelblick
5047
sublime-text
51-
utorrent
48+
visual-studio-code
5249
)
5350

5451
pips=(
52+
pip
5553
s4cmd
56-
Glances
54+
glances
5755
pythonpy
5856
)
5957

6058
gems=(
61-
git-up
59+
bundle
6260
)
6361

6462
npms=(
6563
coffee-script
6664
grunt
6765
)
6866

69-
clibs=(
70-
bpkg/bpkg
71-
)
72-
73-
bkpgs=(
74-
rauchg/wifi-password
67+
vscode=(
68+
donjayamanne.python
69+
dragos.scala-lsp
70+
lukehoban.Go
71+
ms-vscode.cpptools
72+
rebornix.Ruby
73+
redhat.java
7574
)
7675

7776
######################################## End of app list ########################################
7877
set +e
78+
set -x
7979

80-
echo "Installing Xcode ..."
81-
xcode-select --install
8280

8381
if test ! $(which brew); then
82+
echo "Installing Xcode ..."
83+
xcode-select --install
84+
8485
echo "Installing Homebrew ..."
8586
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
8687
else
8788
echo "Updating Homebrew ..."
8889
brew update
90+
brew upgrade
8991
fi
9092
brew doctor
93+
brew tap homebrew/dupes
9194

9295
fails=()
9396

@@ -121,53 +124,62 @@ function proceed_prompt {
121124
fi
122125
}
123126

124-
brew info ${brews[@]}
125-
proceed_prompt
126-
install 'brew install' ${brews[@]}
127+
# echo "Install Java"
128+
# brew cask install java
129+
130+
# brew info ${brews[@]}
131+
# proceed_prompt
132+
# install 'brew install' ${brews[@]}
133+
134+
# brew install caskroom/cask/brew-cask
135+
# brew tap caskroom/versions
127136

128-
brew install caskroom/cask/brew-cask
129-
brew tap caskroom/versions
137+
# brew cask info ${casks[@]}
138+
# proceed_prompt
139+
# install 'brew cask install --appdir=/Applications' ${casks[@]}
130140

131-
brew cask info ${casks[@]}
132-
proceed_prompt
133-
install 'brew cask install --appdir=/Applications' ${casks[@]}
141+
echo "Install pip"
142+
install 'easy_install pip'
134143

135144
# TODO: add info part of install
136145
install 'pip install' ${pips[@]}
137-
install 'gem install' ${gems[@]}
138-
install 'clib install' ${clibs[@]}
139-
install 'bpkg install' ${bpkgs[@]}
140-
install 'npm install -g' ${npms[@]}
141-
142-
echo "Setting up zsh ..."
143-
curl -L http://install.ohmyz.sh | sh
144-
chsh -s $(which zsh)
145-
# TODO: Auto-set theme to "fino-time" in ~/.zshrc (using antigen?)
146-
curl -sSL https://get.rvm.io | bash -s stable # required for some zsh-themes
147-
148-
echo "Setting git defaults ..."
149-
git config --global rerere.enabled true
150-
git config --global branch.autosetuprebase always
151-
git config --global credential.helper osxkeychain
152-
git config --global user.name $1
153-
git config --global user.email $2
154-
155-
echo "Upgrading ..."
156-
pip install --upgrade setuptools
157-
pip install --upgrade pip
158-
gem update --system
159-
160-
echo "Cleaning up ..."
161-
brew cleanup
162-
brew cask cleanup
163-
brew linkapps
164-
165-
for fail in ${fails[@]}
166-
do
167-
echo "Failed to install: $fail"
168-
done
169-
170-
echo "Run `mackup restore` after DropBox has done syncing"
171-
172-
read -p "Hit enter to run [OSX for Hackers] script..." c
173-
sh -c "$(curl -sL https://gist.githubusercontent.com/brandonb927/3195465/raw/osx-for-hackers.sh)"
146+
# install 'gem install' ${gems[@]}
147+
# install 'npm install -g' ${npms[@]}
148+
# install 'code --install-extension' ${vscode[@]}
149+
150+
# echo "Setting up zsh ..."
151+
# curl -L http://install.ohmyz.sh | sh
152+
# chsh -s $(which zsh)
153+
# # TODO: Auto-set theme to "fino-time" in ~/.zshrc (using antigen?)
154+
# curl -sSL https://get.rvm.io | bash -s stable # required for some zsh-themes
155+
156+
# echo "Setting git defaults ..."
157+
# git config --global rerere.enabled true
158+
# git config --global branch.autosetuprebase always
159+
# git config --global credential.helper osxkeychain
160+
# git config --global user.name $1
161+
# git config --global user.email $2
162+
163+
# echo "Upgrading ..."
164+
# pip install --upgrade setuptools
165+
# pip install --upgrade pip
166+
# gem update --system
167+
168+
# prompt "Install mac CLI [NOTE: Say NO to bash-completions since we have fzf]!"
169+
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)"
170+
171+
# echo "Update packages"
172+
# pip3 install --upgrade pip setuptools wheel
173+
# mac update
174+
175+
# echo "Cleaning up ..."
176+
# brew cleanup
177+
# brew cask cleanup
178+
179+
# for fail in ${fails[@]}
180+
# do
181+
# echo "Failed to install: $fail"
182+
# done
183+
184+
# read -p "Run `mackup restore` after DropBox has done syncing"
185+
echo "Done"

0 commit comments

Comments
 (0)