Skip to content

Instantly share code, notes, and snippets.

View samirbelhadjer's full-sized avatar
🤞

SamirB samirbelhadjer

🤞
  • Software developer
  • Bouira
View GitHub Profile
#!/bin/sh
# to get colors in less and more
#you must install pygments
#make the file executable with chmod u+x ~/.lessfilter
#code from Dario Seidl
case "$1" in
*.awk|*.groff|*.java|*.js|*.m4|*.php|*.pl|*.pm|*.pod|*.sh|\
*.ad[asb]|*.asm|*.inc|*.[ch]|*.[ch]pp|*.[ch]xx|*.cc|*.hh|\
*.lsp|*.l|*.pas|*.p|*.xml|*.xps|*.xsl|*.axp|*.ppd|*.pov|\