mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
added my lessfilter
This commit is contained in:
parent
0c03d22530
commit
46cfc5a5df
1 changed files with 13 additions and 0 deletions
13
lessfilter
Executable file
13
lessfilter
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/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
|
Loading…
Add table
Reference in a new issue