mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-19 16:27:45 +02:00
Compare commits
No commits in common. "28ef8b11d9ea44fa8c5980456b024386730dc86e" and "508730a481c6d12b892b26379c3b4615235ea859" have entirely different histories.
28ef8b11d9
...
508730a481
@ -18,6 +18,7 @@
|
|||||||
"lspkind-nvim": { "branch": "master", "commit": "57610d5ab560c073c465d6faf0c19f200cb67e6e" },
|
"lspkind-nvim": { "branch": "master", "commit": "57610d5ab560c073c465d6faf0c19f200cb67e6e" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" },
|
"lualine.nvim": { "branch": "master", "commit": "2248ef254d0a1488a72041cfb45ca9caada6d994" },
|
||||||
"luasnip": { "branch": "master", "commit": "80a8528f084a97b624ae443a6f50ff8074ba486b" },
|
"luasnip": { "branch": "master", "commit": "80a8528f084a97b624ae443a6f50ff8074ba486b" },
|
||||||
|
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "09be3766669bfbabbe2863c624749d8da392c916" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "09be3766669bfbabbe2863c624749d8da392c916" },
|
||||||
"mason-null-ls.nvim": { "branch": "main", "commit": "ae0c5fa57468ac65617f1bf821ba0c3a1e251f0c" },
|
"mason-null-ls.nvim": { "branch": "main", "commit": "ae0c5fa57468ac65617f1bf821ba0c3a1e251f0c" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "cd7835b15f5a4204fc37e0aa739347472121a54c" },
|
"mason.nvim": { "branch": "main", "commit": "cd7835b15f5a4204fc37e0aa739347472121a54c" },
|
||||||
|
@ -1,33 +1,29 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# copying latex templates from my template repository
|
# copying tex templates
|
||||||
# (not included in the dotfiles)
|
|
||||||
|
|
||||||
latexdir=~/code/main/latextemplates
|
latexdir=~/code/main/latextemplates/
|
||||||
|
|
||||||
articletemp=${latexdir}/article/*
|
[ -z "$2" ] && echo "missing argument: filename (no ending)" && return 1
|
||||||
beamertemp=${latexdir}/beamer/*
|
|
||||||
exercisetemp=${latexdir}/exercise/*
|
articletemp=${latexdir}latex_article/article.tex
|
||||||
handouttemp=${latexdir}/handout/*
|
beamertemp=${latexdir}latex_beamer/beamer.tex
|
||||||
cvtemp=${latexdir}/cv/*
|
exercisetemp=${latexdir}latex_exercise_header/header.tex
|
||||||
lettertemp=${latexdir}/letter/*
|
handouttemp=${latexdir}latex_handout/handout.tex
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
a*) cp $articletemp . -r && exit;;
|
a*) cp "$articletemp" $2.tex ;;
|
||||||
b*) cp $beamertemp . -r && exit ;;
|
b*) cp "$beamertemp" $2.tex ;;
|
||||||
c*) cp $cvtemp . -r && exit ;;
|
e*) cp "$exercisetemp" $2.tex ;;
|
||||||
e*) cp $exercisetemp . -r && exit ;;
|
h*) cp "$handouttemp" $2.tex ;;
|
||||||
h*) cp $handouttemp . -r && exit ;;
|
*) cat << EOF
|
||||||
l*) cp $lettertemp . -r && exit ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
cat << EOF
|
|
||||||
Allowed options
|
Allowed options
|
||||||
article get article-template to current dir
|
article NAME get article-template with given NAME
|
||||||
beamer get beamer-template to current dir
|
beamer NAME get beamer-template with given NAME
|
||||||
cv get curriculum vitae-template to current dir
|
exercise NAME get exercise-template with given NAME
|
||||||
exercise get exercise-template to current dir
|
handout NAME get handout-template with given NAME
|
||||||
handout get handout-template to current dir
|
|
||||||
letter get letter-template to current dir
|
|
||||||
|
|
||||||
All of these commands can be truncated to one character.
|
All of these commands can be truncated,
|
||||||
|
i.e. \`textemp a\` for \`textemp article`\.
|
||||||
EOF
|
EOF
|
||||||
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user