Change status colors.

This commit is contained in:
Ivan Malison 2014-09-09 20:31:27 -07:00
parent d731e62b04
commit 515aa04c50
2 changed files with 31 additions and 3 deletions

View File

@ -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:"

View File

@ -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 - <<EOF
from random import randrange
import re
import urllib
def talk_dirty_to_me():
socket = urllib.urlopen("http://www.youporn.com/random/video/")
htmlSource = socket.read()
socket.close()
result = re.findall('<p class="message">((?:.|\\n)*?)</p>', 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
}