I use jq now, more than this alias.

This commit is contained in:
Julien Palard 2023-12-03 09:02:06 +01:00
parent d263b66ca4
commit 0c53827898
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 0 additions and 11 deletions

11
.bashrc
View File

@ -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 -)"