-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_dev.sh
executable file
·37 lines (29 loc) · 1.25 KB
/
install_dev.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
#!/bin/bash
set -e
pip3 install pre-commit --user
if [[ "$OSTYPE" == "darwin"* ]]; then
export HOMEBREW_CASK_OPTS=--appdir=/Applications
brew install --cask diffmerge git-split-diffs
#ln -sf /Applications/DiffMerge.app/Contents/Resources/diffmerge.sh /usr/local/bin/diffmerge
# if ! brew install --cask virtualbox ; then
# echo
# echo "Please open the 'Privacy and Security' control panel to allow this install and then run $0 again."
# fi
# brew install --cask vagrant vagrant-manager
brew install --cask visual-studio-code
elif [[ -r /etc/redhat-release ]]; then
echo "RedHat? must be running on a server. not doing anything"
else
sudo apt install -y meld python-virtualenv
wget "https://go.microsoft.com/fwlink/?LinkID=760868" -c -O /tmp/vscode.deb &&
sudo apt install -y /tmp/vscode.deb && rm /tmp/vscode.deb
fi
if ! test -r ~/.netrc; then
echo "**** Creating .netrc for you. Please add in the user and a github token"
echo "**** The Token should give us access to the github API. Please read the"
echo "**** docs to see how to create the token."
echo "machine github.com" >~/.netrc
echo " login USER" >>~/.netrc
echo " password TOKEN" >>~/.netrc
fi
~/bin/imgcat ~/.homesick/repos/dotfiles/images/chuck-norris-approves.gif