mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
Minor
This commit is contained in:
parent
39f1c78f99
commit
53c19055b6
@ -1,5 +1,5 @@
|
||||
if exists exiftool; then
|
||||
exiftool "$f" || true
|
||||
exiftool -- "$f" || true
|
||||
else
|
||||
cat "$f"
|
||||
cat < "$f"
|
||||
fi
|
||||
|
@ -1 +1 @@
|
||||
cat "$f"
|
||||
cat < "$f"
|
||||
|
@ -1 +1 @@
|
||||
jq -C . "$f"
|
||||
jq -C . < "$f"
|
||||
|
@ -1 +1 @@
|
||||
ls --color --group-directories-first "$f"
|
||||
ls --color --group-directories-first -- "$f"
|
||||
|
@ -1 +1 @@
|
||||
mdcat --columns "$w" "$f"
|
||||
mdcat --columns "$w" -- "$f"
|
||||
|
@ -6,9 +6,10 @@ office() {
|
||||
|
||||
libreoffice \
|
||||
--headless \
|
||||
--convert-to jpg "$f" \
|
||||
--outdir "$cache_d" >/dev/null &&
|
||||
mv "$cache_d/$jpg.jpg" "$cache_f"
|
||||
--convert-to jpg \
|
||||
--outdir "$cache_d" \
|
||||
"$f" >/dev/null &&
|
||||
mv -- "$cache_d/$jpg.jpg" "$cache_f"
|
||||
}
|
||||
|
||||
convert_and_show_image office
|
||||
|
@ -1,3 +1,4 @@
|
||||
source-highlight \
|
||||
--tab=4 --out-format=esc \
|
||||
--style=esc256.style --failsafe -i "$f"
|
||||
--style=esc256.style --failsafe -i \
|
||||
-- "$f"
|
||||
|
Loading…
Reference in New Issue
Block a user