Skip to content

Instantly share code, notes, and snippets.

@mattcanty
Created March 9, 2018 09:39
Show Gist options
  • Save mattcanty/f9a281a57a3963823a4786df7b81c9c2 to your computer and use it in GitHub Desktop.
Save mattcanty/f9a281a57a3963823a4786df7b81c9c2 to your computer and use it in GitHub Desktop.
Mac Setup
go get -u github.com/jtyr/gbt/cmd/gbt
export GBT_CAR_DIR_DEPTH='2'
export GBT_CAR_SIGN_WRAP='1'
PS1='$(gbt $?)'
sourceCodeUrl="$(curl -s https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest | rq -j 'at "assets" | spread | find (a => a.name == "SourceCodePro.zip") | at browser_download_url' | awk -F'","' -v OFS=, '{$1=$1;gsub(/^"|"$/,"")}1')"
curl -fsSL "$sourceCodeUrl" -o /tmp/sourceCodePro.zip
unzip /tmp/sourceCodePro.zip -d "$HOME/Library/Fonts/"
curl -fsSL "https://s3-eu-west-1.amazonaws.com/record-query/record-query/x86_64-apple-darwin/rq" -o "$HOME/bin/rq"
chmod +x "$HOME/bin/rq"
curl -fsSL https://s3.amazonaws.com/itsycal/Itsycal.zip -o /tmp/itsycal.zip
unzip /tmp/itsycal.zip -d "$HOME/Applications"
defaults write com.apple.menuextra.clock DateForm -string "HH:mm"
defaults write com.mowglii.ItsycalApp ShowMonthInIcon -int 1
defaults write com.mowglii.ItsycalApp ShowDayOfWeekInIcon -int 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment