Last active
August 29, 2015 14:00
-
-
Save woowee/144678ad7df6c964aa0c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -u | |
set -e | |
sudo -v | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & | |
dir_current=$(dirname $0) | |
cd ${dir_current} | |
source ${dir_current}/functions.sh | |
here=$(basename $0) | |
# | |
# staff to install | |
# | |
# homebrew | |
bins=(\ | |
zsh \ | |
tmux \ | |
git \ | |
wget \ | |
openssl \ | |
w3m \ | |
go \ | |
python \ | |
python3 \ | |
### for radiko | |
rtmpdump \ | |
ffmpeg \ | |
base64 \ | |
swftools \ | |
eyeD3 \ | |
### for handbrake | |
libdvdcss \ | |
### phinze/cask | |
brew-cask \ | |
### homebrew/dupes | |
rsync \ | |
### sanemat/font | |
ricty \ | |
) | |
# homebrew-cask | |
apps=(\ | |
### phinze/cask | |
alfred \ | |
google-chrome \ | |
appcleaner \ | |
dropbox \ | |
evernote \ | |
iterm2 \ | |
vlc \ | |
handbrake \ | |
bettertouchtool \ | |
shiftit \ | |
gimp-lisanet \ | |
inkscape \ | |
### woowee/mycask | |
mytracks \ | |
macvim-kaoriya \ | |
) | |
# | |
# homebrew install, tap, and update | |
# | |
type brew >/dev/null 2>&1 || ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew tap homebrew/dupes | |
brew tap phinze/cask | |
brew tap sanemat/font | |
brew tap woowee/mycask | |
brew update && brew upgrade | |
# | |
# brew | |
# | |
echo -e "\033[32m${here}>\033[0m brew install..." | |
for bin in "${bins[@]}"; | |
do | |
brew install "${bin}" | |
# some process as needed | |
done | |
# | |
# cask | |
# | |
brew upgrade brew-cask || true | |
brew cask update | |
echo -e "\033[32m${here}>\033[0m brew cask install..." | |
for app in "${apps[@]}"; do brew cask install "${app}"; done | |
# | |
# settings | |
# | |
# shell | |
path_zsh=$(find $(brew --prefix)/bin -name zsh) | |
if [ -n ${path_zsh} ]; then | |
echo -e "\033[32m${here}>\033[0m shell, zsh settings..." | |
echo "zsh: ${path_zsh}" | |
# add zsh | |
echo ${path_zsh} | sudo tee -a /etc/shells | |
# set zsh | |
chsh -s ${path_zsh} | |
fi | |
# iterm2 | |
if check_existence_app 'iTerm.app' path_app; then | |
echo -e "\033[32m${here}>\033[0m iterm settings..." | |
echo "iterm: ${path_app}" | |
#todo. iterm settings (should use profile ?) | |
fi | |
# ricty | |
cp -f $(brew --prefix)/share/fonts/Ricty*.ttf ~/Library/Fonts/ && fc-cache -vf && echo "ricty was installed..." | |
# python | |
brew link --overwrite python | |
pip install --upgrade setuptools | |
pip install --upgrade pip | |
# mutagen (to use mid3v2) | |
if ! check_existence_command 'mutagen'; then | |
echo -e "\033[32m${here}>\033[0m mutagen installation..." | |
pip install mutagen | |
fi | |
# alfred | |
brew cask alfred link | |
cat << END | |
************************************************** | |
NOW IT'S DONE. | |
************************************************** | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment