mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-02-14 17:14:47 +01:00
nvim: added go shells to compiler script
This commit is contained in:
@@ -27,6 +27,7 @@ textype() { \
|
|||||||
|
|
||||||
case "$file" in
|
case "$file" in
|
||||||
*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;;
|
*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;;
|
||||||
|
*\.bash) bash "$file" ;;
|
||||||
*\.go) go run "$file" ;;
|
*\.go) go run "$file" ;;
|
||||||
*\.lua) lua "$file" ;;
|
*\.lua) lua "$file" ;;
|
||||||
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
|
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
|
||||||
@@ -49,5 +50,6 @@ case "$file" in
|
|||||||
*\.smt2) z3 "$file" ;;
|
*\.smt2) z3 "$file" ;;
|
||||||
*\.tex) textype "$file" ;;
|
*\.tex) textype "$file" ;;
|
||||||
*\.vpr) $vipercmd "$file" ;;
|
*\.vpr) $vipercmd "$file" ;;
|
||||||
|
*\.zsh) zsh "$file" ;;
|
||||||
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
|
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user