I use jq now, more than this alias.
This commit is contained in:
parent
d263b66ca4
commit
0c53827898
11
.bashrc
11
.bashrc
|
@ -111,17 +111,6 @@ PS1="${_TITLE}${_PREV_FAIL}${USERNAME_COLOR}\u\e[0m@${HOSTNAME_COLOR}\H\e[0m:\e[
|
|||
|
||||
eval "$(direnv hook bash)"
|
||||
|
||||
jsonpp()
|
||||
{
|
||||
input="$([ $# -gt 0 ] && printf "%s\n" "$*" || cat -)"
|
||||
if ! [ z"$(which pygmentize)" = z"" ]
|
||||
then
|
||||
printf "%s" "$input" | python -mjson.tool | pygmentize -l js || printf "%s\n" "$input"
|
||||
else
|
||||
printf "%s" "$input" | python -mjson.tool || printf "%s\n" "$input"
|
||||
fi
|
||||
}
|
||||
|
||||
urldecode()
|
||||
{
|
||||
input="$([ $# -gt 0 ] && printf "%s\n" "$*" || cat -)"
|
||||
|
|
Loading…
Reference in New Issue