mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Add the pj function to easily prettify JSON.
This commit is contained in:
parent
9cc2d0964b
commit
1df9ea8c28
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue