From 2e52574fad632a5b320b5aca9a2c2a0103f467a9 Mon Sep 17 00:00:00 2001 From: tiynger Date: Sun, 13 Oct 2019 22:34:56 +0200 Subject: [PATCH] make getting latexhandouts easier with function --- .config/aliasrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/aliasrc b/.config/aliasrc index 6017a0d..7e4d614 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -26,7 +26,10 @@ sc() { find ~/.config/* ~/.local/bin/* -type f | fzf | xargs -r $EDITOR ;} sd() { find ~/ownCloud/* -type f | grep ".pdf" | fzf | xargs -r $READER ;} # git -alias texhandout="cp ~/gitrepos/Tools/LaTeX\ Templates/LaTeX\ Handout/Handout.tex" +texhandout() { + [[ -z $1 ]] && echo "missing argument: filename (no ending)" && return 1 + cp ~/gitrepos/Tools/LaTeX\ Templates/LaTeX\ Handout/Handout.tex $1.tex && xelatex $1.tex +} # grep alias grep="grep --color=auto"