Add pretty paste option for syntax highlighted code, add docs.

This commit is contained in:
Jeff Geerling
2014-07-17 13:35:07 -05:00
parent 3f215c1e3f
commit e1e4018e97
+7
View File
@@ -35,10 +35,17 @@ function route_delete() {
} }
# Route IRC traffic through one of my servers. # Route IRC traffic through one of my servers.
# Use SOCKS5 settings 'localhost' and 6667 for server/port.
function irc_proxy() { function irc_proxy() {
ssh -vD 6667 geerlingguy@atl1.servercheck.in ssh -vD 6667 geerlingguy@atl1.servercheck.in
} }
# Syntax-highlight code for copying and pasting.
# Requires highlight (`brew install highlight`).
function pretty() {
pbpaste | highlight --syntax=$1 -O rtf | pbcopy
}
# Git aliases. # Git aliases.
alias gs='git status' alias gs='git status'
alias gc='git commit' alias gc='git commit'