This file contains 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
# 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 |
This file contains 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
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 |