/ dot_local / bin / executable_previewer
executable_previewer
 1  #!/bin/sh
 2  
 3  case "$1" in
 4      *.tar*) tar tf "$1";;
 5      *.zip) unzip -l "$1";;
 6      *.rar) unrar l "$1";;
 7      *.7z) 7z l "$1";;
 8      *.pdf) pdftotext "$1" -;;
 9      *shrc) highlight -O ansi --syntax="sh" "$1";;
10      #*) chroma "$1";;
11      *) highlight -O ansi "$1";;
12  esac