From 515aa04c507759bb271b3ac24009025811264fdc Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 9 Sep 2014 20:31:27 -0700 Subject: [PATCH] Change status colors. --- dotfiles/gitconfig | 6 +++--- dotfiles/lib/shellrc/functions.sh | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/dotfiles/gitconfig b/dotfiles/gitconfig index fbd98fa0..d8d752c3 100644 --- a/dotfiles/gitconfig +++ b/dotfiles/gitconfig @@ -66,9 +66,9 @@ new = green bold [color "status"] - added = yellow - changed = green - untracked = cyan + added = green + changed = yellow + untracked = red [url "git@gist.github.com:"] insteadOf = "gst:" diff --git a/dotfiles/lib/shellrc/functions.sh b/dotfiles/lib/shellrc/functions.sh index 0fa727d6..0213bde8 100644 --- a/dotfiles/lib/shellrc/functions.sh +++ b/dotfiles/lib/shellrc/functions.sh @@ -237,3 +237,31 @@ function brew_for_multiple_users() { sudo chgrp -R admin /Library/Caches/Homebrew sudo chmod -R g+w /Library/Caches/Homebrew } + +function swap_audio() { + test -z $(SwitchAudioSource -c | grep HDMI) && SwitchAudioSource -s HDMI || SwitchAudioSource -s "Built-in Output" +} + +function talk_dirty_to_me() { + python - <((?:.|\\n)*?)

', htmlSource) + if len(result): + print result[randrange(len(result))] + else: + talk_dirty_to_me() + +talk_dirty_to_me() +EOF +} + +function dirty_talk() { + while true; do talk_dirty_to_me | tee >(cat) | say; done +}