Skip to content

Instantly share code, notes, and snippets.

View kc-dot-io's full-sized avatar
👉
Check out CTO.ai: https://cto.ai/

Kyle Campbell kc-dot-io

👉
Check out CTO.ai: https://cto.ai/
View GitHub Profile
function ops_team {
OPS_TEAM=$(cat ~/.config/@cto.ai/ops-rc/config.json | jq .team.name | tr -d '"')
echo "$OPS_TEAM"
}
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT+='$(ops_team)'
PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
@kc-dot-io
kc-dot-io / agnoster-ops.zsh-theme
Created October 30, 2022 06:51
agnoster-ops.zsh-theme
# Original theme https://github.com/agnoster zsh theme
ZSH_THEME_GIT_PROMPT_DIRTY='±'
function _git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
echo "${ref/refs\/heads\//⭠ }$(parse_git_dirty)"
}
function _git_info() {
@kc-dot-io
kc-dot-io / gist:4eaf6c6ac242e28bb77aef12e77ef2c7
Created January 10, 2017 18:15 — forked from strathmeyer/gist:4990173
Improve OSX Bluetooth quality
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 48
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 40
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 48
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 53
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 48
defaults write com.apple.BluetoothAudioAgent "Stream - Flush Ring on Packet Drop (editable)" 30
defaults write com.apple.BluetoothAudioAgent "Stream - Max Outstanding Packets (editable)" 15
defaults write com.apple.BluetoothAudioAgent "Stream Resume Delay" "0.75"

Keybase proof

I hereby claim:

  • I am slajax on github.
  • I am slajax (https://keybase.io/slajax) on keybase.
  • I have a public key ASCVOj2pIUE96UlQIT3v0_U_TtOYw7I_UG_-5sjABj0KmQo

To claim this, I am signing this object:

@kc-dot-io
kc-dot-io / README.md
Last active August 29, 2015 14:08 — forked from smileart/README.md

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility