mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53: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"
|
||||
|
11
prev/odt.sh
11
prev/odt.sh
@ -4,11 +4,12 @@ office() {
|
||||
# File produced by libreoffice
|
||||
jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')"
|
||||
|
||||
libreoffice \
|
||||
--headless \
|
||||
--convert-to jpg "$f" \
|
||||
--outdir "$cache_d" >/dev/null &&
|
||||
mv "$cache_d/$jpg.jpg" "$cache_f"
|
||||
libreoffice \
|
||||
--headless \
|
||||
--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"
|
||||
source-highlight \
|
||||
--tab=4 --out-format=esc \
|
||||
--style=esc256.style --failsafe -i \
|
||||
-- "$f"
|
||||
|
Loading…
Reference in New Issue
Block a user