From 0c538278986808e5dc62709c28b5c68751d98e1e Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sun, 3 Dec 2023 09:02:06 +0100 Subject: [PATCH] I use jq now, more than this alias. --- .bashrc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.bashrc b/.bashrc index bc6e680..611a9d2 100644 --- a/.bashrc +++ b/.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 -)"