Skip to content

Commit

Permalink
refacotr lessfilter
Browse files Browse the repository at this point in the history
  • Loading branch information
seagle0128 committed Jul 12, 2024
1 parent ec27cf3 commit ca8de09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .lessfilter
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ kind=${mime##*/}
if [ -d "$1" ]; then
eza --git -hl --icons --color=always --group-directories-first "$1"
elif [ "$category" = text ]; then
bat -p --color=always "$1"
bat --style=numbers --color=always "$1"
elif [ "$category" = image ]; then
if ! command -v chafa >/dev/null 2>&1; then
chafa "$1"
fi
if ! command -v exiftool >/dev/null 2>&1; then
exiftool "$1"
else
bat -p --color=always "$1"
bat --style=numbers --color=always "$1"
fi
else
bat -p --color=always "$1"
bat --style=numbers --color=always "$1"
fi

0 comments on commit ca8de09

Please sign in to comment.