Add the pj function to easily prettify JSON.

This commit is contained in:
Steve Losh 2010-04-30 10:25:30 -04:00
commit 1df9ea8c28

View file

@ -16,4 +16,9 @@ export LC_CTYPE=en_US.UTF-8
## pretty man pages ## pretty man pages
function pman() { function pman() {
man $1 -t | open -f -a Preview man $1 -t | open -f -a Preview
}
## pretty JSON
function pj() {
python -mjson.tool
} }