From 8a919f67f300d5fde064faf10a033eeddb76ac32 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Mon, 26 Dec 2022 18:49:10 +0100 Subject: [PATCH] bashrc: update ps1 --- .../.config/nvim/snippets/snippets/latex.json | 17 ++++++++++++++--- files/shell/.bashrc | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/files/nvim/.config/nvim/snippets/snippets/latex.json b/files/nvim/.config/nvim/snippets/snippets/latex.json index a55a7a8..ff27394 100644 --- a/files/nvim/.config/nvim/snippets/snippets/latex.json +++ b/files/nvim/.config/nvim/snippets/snippets/latex.json @@ -20,6 +20,9 @@ "\\usepackage{xcolor}", "\\usepackage{color}", "", + "%%% used to \\import{PATH}{FILE}", + "\\usepackage{import}", + "", "%%% DEUTSCH!", "\\usepackage[ngerman]{babel}", "", @@ -94,7 +97,7 @@ "\\begin{document}", "", "% 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", "\\maketitle", @@ -109,7 +112,7 @@ "\\section{}", "", "% bibliography, cite with \\autocite{}", - "\\printbibliography[heading=bibintoc,title={Quellen}]", + "\\printbibliography[heading=bibintoc,title={Quellenverzeichnis}]", "", "% optional appendix", "% \\appendix", @@ -325,7 +328,15 @@ }, "glossary-entry": { "prefix": "nge", - "body": ["\\newglossaryentry{$1}{name= ,description={}, plural={}}"], + "body": [ + "\\newglossaryentry{$1}{", + " name={}", + " first={}", + " description={}", + " plural={}", + " firstplural={}", + "}" + ], "description": "Insert a new glossary entry" } } diff --git a/files/shell/.bashrc b/files/shell/.bashrc index 83e061b..98341cb 100644 --- a/files/shell/.bashrc +++ b/files/shell/.bashrc @@ -12,7 +12,7 @@ esac git_branch() { 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/') - echo "${branch_name}  " + echo "(${branch_name} ) " fi }