Change status colors.
This commit is contained in:
parent
d731e62b04
commit
515aa04c50
@ -66,9 +66,9 @@
|
|||||||
new = green bold
|
new = green bold
|
||||||
|
|
||||||
[color "status"]
|
[color "status"]
|
||||||
added = yellow
|
added = green
|
||||||
changed = green
|
changed = yellow
|
||||||
untracked = cyan
|
untracked = red
|
||||||
|
|
||||||
[url "git@gist.github.com:"]
|
[url "git@gist.github.com:"]
|
||||||
insteadOf = "gst:"
|
insteadOf = "gst:"
|
||||||
|
@ -237,3 +237,31 @@ function brew_for_multiple_users() {
|
|||||||
sudo chgrp -R admin /Library/Caches/Homebrew
|
sudo chgrp -R admin /Library/Caches/Homebrew
|
||||||
sudo chmod -R g+w /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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user