aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-07-30 15:55:54 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-07-30 15:55:54 +0300
commitc82c45a89f0e63c9fb7e82e6cda9abcaed04057f (patch)
tree068b91682c51a54e42187c9444f6fea9d14639ae
parent0d3e81d7d691adc6ce25d87bccb0c6e381911f50 (diff)
downloadswayrice-c82c45a89f0e63c9fb7e82e6cda9abcaed04057f.tar.gz
swayrice-c82c45a89f0e63c9fb7e82e6cda9abcaed04057f.zip
lf/scope: highlight json
-rwxr-xr-xdotfiles/.local/bin/scope2
1 files changed, 1 insertions, 1 deletions
diff --git a/dotfiles/.local/bin/scope b/dotfiles/.local/bin/scope
index d3041c1..5a6c157 100755
--- a/dotfiles/.local/bin/scope
+++ b/dotfiles/.local/bin/scope
@@ -34,7 +34,7 @@ handle_mime() {
case "${mimetype}" in
text/html) w3m -dump "${FILE_PATH}" ;;
text/troff) man ./ "${FILE_PATH}" | col -b ;;
- text/* | */xml | */csv)
+ text/* | */xml | */csv | */json)
if [ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]; then
exit 2
fi