mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
14 lines
535 B
Text
14 lines
535 B
Text
![]() |
#!/bin/sh
|
||
|
# Decode file for less
|
||
|
case `echo "$1" | tr '[:upper:]' '[:lower:]'` in
|
||
|
# we don't handle archives, we let the big guy do it
|
||
|
*.arj|*.tar.bz2|*.bz|*.bz2|*.deb|*.udeb|*.doc|*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif|*.iso|*.bin|*.raw|*.lha|*.lzh|*.pdf|*.rar|*.r[0-9][0-9]*.rpm|*.tar.gz|*.tgz|*.tar.z|*.tar.dz|*.gz|*.z|*.dz|*.tar|*.jar|*.war|*.ear|*.xpi|*.zip*.7z|*.zoo)
|
||
|
exit 1;;
|
||
|
*changelog)
|
||
|
source-highlight --failsafe -f esc -s changelog -i "$1";;
|
||
|
*)
|
||
|
source-highlight --failsafe -f esc -i "$1";;
|
||
|
esac
|
||
|
|
||
|
exit 0
|