dotfiles/macosx/up.sh

124 lines
2.5 KiB
Bash
Raw Normal View History

2017-01-26 05:44:03 +00:00
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" </dev/null
export PATH="/usr/local/bin:$PATH"
2017-08-05 18:50:18 +01:00
set +e
brew unlink gnupg
brew unlink gnupg2
brew uninstall gnupg
brew uninstall gnupg2
brew unlink dirmngr
brew uninstall dirmngr
brew unlink gpg-agent
brew uninstall gpg-agent
2018-06-03 12:20:42 +01:00
brew unlink mercurial
brew uninstall --force mercurial
2018-06-03 12:37:07 +01:00
brew unlink numpy
brew uninstall --ignore-dependencies numpy
2018-03-31 12:52:13 +01:00
brew unlink python
2018-06-03 12:20:42 +01:00
brew uninstall --ignore-dependencies python
2018-06-03 12:45:48 +01:00
brew unlink python@2
brew uninstall --ignore-dependencies python@2
brew install numpy
brew link --overwrite numpy
2019-01-26 18:16:41 +00:00
brew link --overwrite gcc
brew install --force dirmngr
2017-01-26 05:44:03 +00:00
set -e
brew update
2018-06-03 12:20:42 +01:00
brew install --force gnupg2
brew install python3
brew install mercurial
2017-01-26 05:44:03 +00:00
brew upgrade
2018-06-03 12:25:26 +01:00
brew cask upgrade
2017-01-26 05:44:03 +00:00
2019-03-04 14:46:42 +00:00
brew install reattach-to-user-namespace
2017-01-26 05:44:03 +00:00
brew install aria2
brew install \
autojump \
bash \
mobile-shell \
the_silver_searcher \
tmux \
tree \
watch \
zsh
2017-08-05 18:50:18 +01:00
brew install \
2017-01-26 05:44:03 +00:00
coreutils \
curl \
dos2unix \
findutils \
gawk \
gnu-sed \
httpie \
httping \
jq \
moreutils \
pinentry \
pinentry-mac \
socat \
unrar \
2017-05-14 18:16:26 +01:00
wget \
2017-06-16 16:17:00 +01:00
fontconfig \
syncthing
2017-01-26 05:44:03 +00:00
brew install \
carthage \
cmake \
elm \
git \
haskell-stack \
mercurial \
python \
python3 \
ruby \
sqlite \
tidy-html5 \
doxygen \
go \
optipng \
jpegoptim
2017-01-26 05:44:03 +00:00
brew cask install gimp
brew cask install iterm2
brew cask install docker
brew cask install appcode
2017-09-22 10:29:31 +01:00
brew cask install adium
brew cask install kdiff3
2017-11-01 09:03:43 +00:00
brew cask install istat-menus
2017-01-26 05:44:03 +00:00
2019-01-20 15:58:21 +00:00
echo "finsihed installing"
echo "restart syncthing"
reattach-to-user-namespace brew services restart syncthing
2017-06-16 16:17:00 +01:00
2017-01-26 05:44:03 +00:00
if ! fgrep /usr/local/bin/zsh /etc/shells; then
2019-01-20 15:58:21 +00:00
echo "add shell"
2017-01-26 05:44:03 +00:00
sudo bash -c "echo /usr/local/bin/zsh >> /etc/shells"
fi
2019-01-20 15:58:21 +00:00
echo "cleanup"
2017-01-26 05:44:03 +00:00
brew cleanup
2019-01-20 15:58:21 +00:00
2017-01-26 05:44:03 +00:00
echo "Configuring NVRAM"
sudo nvram SystemAudioVolume=%80
2017-06-16 16:17:00 +01:00
defaults write com.google.Keystone.Agent checkInterval 4233600
2017-01-26 05:44:03 +00:00
DIR="$DIR/../"
2017-05-14 18:16:26 +01:00
DIR=`realpath "$DIR"`
2017-01-26 05:44:03 +00:00
if [[ -z $CONTINUOUS_INTEGRATION ]]; then
echo "Invoking common configuration scripts"
2019-05-19 21:41:17 +01:00
DIR="$DIR" $DIR/common/up.sh
2017-01-26 05:44:03 +00:00
fi
ln -vfs "$DIR/.gitconfig.mac" $HOME/.gitconfig
mkdir -p "$HOME/Library/Application Support/Code/User/"
ln -vfs "$DIR/.config/Code/User/settings.json.mac" "$HOME/Library/Application Support/Code/User/settings.json"
ln -vfs "$DIR/.config/Code/User/keybindings.json.mac" "$HOME/Library/Application Support/Code/User/keybindings.json"