1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-27 21:47:46 +01:00

added shell and vim shortcuts for octave

This commit is contained in:
TiynGER 2020-11-01 16:33:10 +01:00
parent 85298c3b9e
commit 901c6856af
2 changed files with 5 additions and 0 deletions

View File

@ -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"

View File

@ -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 ;;