Various Linux scripts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
347 B

#!/bin/bash
#- Вывод файлов с подсветкой синтаксиса
srchl="source-highlight -f esc --line-number=' ' --style-file=$SHELLRC/etc/soft/source-hl/default.style"
if [[ "${1##*/}" == .* ]]; then
eval $srchl -i "$1" --src-lang=sh
else
eval $srchl -i "$1"
fi 2> /dev/null || eval $srchl -i "$1" --src-lang=lisp
echo