Add pretty paste option for syntax highlighted code, add docs.
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user