bashrc: update ps1
This commit is contained in:
@@ -20,6 +20,9 @@
|
|||||||
"\\usepackage{xcolor}",
|
"\\usepackage{xcolor}",
|
||||||
"\\usepackage{color}",
|
"\\usepackage{color}",
|
||||||
"",
|
"",
|
||||||
|
"%%% used to \\import{PATH}{FILE}",
|
||||||
|
"\\usepackage{import}",
|
||||||
|
"",
|
||||||
"%%% DEUTSCH!",
|
"%%% DEUTSCH!",
|
||||||
"\\usepackage[ngerman]{babel}",
|
"\\usepackage[ngerman]{babel}",
|
||||||
"",
|
"",
|
||||||
@@ -94,7 +97,7 @@
|
|||||||
"\\begin{document}",
|
"\\begin{document}",
|
||||||
"",
|
"",
|
||||||
"% use with \\gls{nvim}, new entry with snippet nge",
|
"% use with \\gls{nvim}, new entry with snippet nge",
|
||||||
"% \\newglossaryentry{nvim}{name=Neovim, description={Bester Editor der Welt}}",
|
"% \\import{.}{glossary.tex}",
|
||||||
"",
|
"",
|
||||||
"% create title page with toc",
|
"% create title page with toc",
|
||||||
"\\maketitle",
|
"\\maketitle",
|
||||||
@@ -109,7 +112,7 @@
|
|||||||
"\\section{}",
|
"\\section{}",
|
||||||
"",
|
"",
|
||||||
"% bibliography, cite with \\autocite{}",
|
"% bibliography, cite with \\autocite{}",
|
||||||
"\\printbibliography[heading=bibintoc,title={Quellen}]",
|
"\\printbibliography[heading=bibintoc,title={Quellenverzeichnis}]",
|
||||||
"",
|
"",
|
||||||
"% optional appendix",
|
"% optional appendix",
|
||||||
"% \\appendix",
|
"% \\appendix",
|
||||||
@@ -325,7 +328,15 @@
|
|||||||
},
|
},
|
||||||
"glossary-entry": {
|
"glossary-entry": {
|
||||||
"prefix": "nge",
|
"prefix": "nge",
|
||||||
"body": ["\\newglossaryentry{$1}{name= ,description={}, plural={}}"],
|
"body": [
|
||||||
|
"\\newglossaryentry{$1}{",
|
||||||
|
" name={}",
|
||||||
|
" first={}",
|
||||||
|
" description={}",
|
||||||
|
" plural={}",
|
||||||
|
" firstplural={}",
|
||||||
|
"}"
|
||||||
|
],
|
||||||
"description": "Insert a new glossary entry"
|
"description": "Insert a new glossary entry"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ esac
|
|||||||
git_branch() {
|
git_branch() {
|
||||||
if $(git rev-parse --git-dir > /dev/null 2>&1); then
|
if $(git rev-parse --git-dir > /dev/null 2>&1); then
|
||||||
local branch_name=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
|
local branch_name=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
|
||||||
echo "${branch_name} "
|
echo "(${branch_name} ) "
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user