From 901c6856afd72bd16c381d334e50d11ec0fe2161 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sun, 1 Nov 2020 16:33:10 +0100 Subject: [PATCH] added shell and vim shortcuts for octave --- .config/aliasrc | 4 ++++ .local/bin/tools/nvim/compiler | 1 + 2 files changed, 5 insertions(+) diff --git a/.config/aliasrc b/.config/aliasrc index 2634dee..9763271 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -60,6 +60,10 @@ alias upmutt="mbsync -a && neomutt" # mv alias mv="mv -i" +# octave +alias octave="octave --persist" +alias matlab="octave --persist" + # pacman alias pac="sudo pacman" diff --git a/.local/bin/tools/nvim/compiler b/.local/bin/tools/nvim/compiler index f36cf42..57a5530 100755 --- a/.local/bin/tools/nvim/compiler +++ b/.local/bin/tools/nvim/compiler @@ -28,6 +28,7 @@ case "$file" in *\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;; *\.rmd) echo "require(rmarkdown); render('$file')" | R -q --vanilla ;; *\.tex) textype "$file" ;; + *\.m) octave --no-window-system "$file" ;; *\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;; *config.h) sudo make install ;; *\.c) if [ -f Makefile ]; then make run; else cc "$file" -o "$base" && "$base"; fi ;;