diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-06-13 08:37:31 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-06-13 08:37:31 +0530 |
commit | 28ea0e3cbe1c0f980a05d6fb13a428bcab2ea1c5 (patch) | |
tree | b44f5301c4f60b1dae51a91e72b614996ee074ce /.local/bin/text-preview | |
parent | 311a468de08231c3dd2327473b79066a25e67462 (diff) |
Diffstat (limited to '.local/bin/text-preview')
-rwxr-xr-x | .local/bin/text-preview | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/.local/bin/text-preview b/.local/bin/text-preview deleted file mode 100755 index 4d0931d..0000000 --- a/.local/bin/text-preview +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -# A simple text previewer. -# Useful in certain cases when you don't want to use your glorified previewer -# and just see the raw text content of a processable document like a markdown -# file. - -[ -f "$1" ] && { - if command -v highlight >/dev/null; then - highlight --out-format=ansi -- "$1" - elif command -v bat >/dev/null; then - bat -- "$1" - else - cat -- "$1" - fi - exit -} - -if command -v eza >/dev/null; then - eza -alhF --group-directories-first --color=always --icons=always -- "$1" -else - ls -lhAF --group-directories-first --color=always -- "$1" -fi |