1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-12 12:31:15 +02:00

nvim: added rust to compiler

This commit is contained in:
tiyn
2025-10-10 07:13:29 +02:00
parent 50b033c772
commit 7a66057608

View File

@@ -42,5 +42,6 @@ case "$file" in
*\.lua) lua "$file" ;; *\.lua) lua "$file" ;;
*\.sent) setsid sent "$file" 2>/dev/null & ;; *\.sent) setsid sent "$file" 2>/dev/null & ;;
*\.r|*\.R) Rscript "$file" ;; *\.r|*\.R) Rscript "$file" ;;
*\.rs) rustc "$file" && "$base" ;;
*) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;; *) sed 1q "$file" | grep "^#!/" | sed "s/^#!//" | xargs -r -I % "$file" ;;
esac esac