Skip to content

Instantly share code, notes, and snippets.

@JuanMiguelGM
JuanMiguelGM / .zsh-theme
Last active August 5, 2021 13:11
zsh theme
CRUNCH_BRACKET_COLOR="%{$fg_bold[blue]%}"
CRUNCH_RVM_COLOR="%{$fg[yellow]%}"
if [ -e ~/.rvm/bin/rvm-prompt ]; then
CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(~/.rvm/bin/rvm-prompt i v g)#ruby-}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
else
if which rbenv &> /dev/null; then
CRUNCH_RVM_="$CRUNCH_BRACKET_COLOR"["$CRUNCH_RVM_COLOR\${\$(rbenv version | sed -e 's/ (set.*$//' -e 's/^ruby-//')}$CRUNCH_BRACKET_COLOR"]"%{$reset_color%}"
fi
fi
# install this as pre-requisite
brew install bluetoothconnector
brew install switchaudio-osx
# In automator, create a new "Quick Action" Shell Script with no input and in any application:
# mac and name for the airpods can be found executing: BluetoothConnector
set -e
mac=0c-3b-50-96-75-34