Dotfiles V1.3.7

Fixed \ Problem for AI Prompt
This commit is contained in:
2026-01-07 10:54:38 +01:00
parent 165393ed81
commit b3db0e3f08
2 changed files with 34 additions and 5 deletions

10
.zshrc
View File

@@ -127,27 +127,27 @@ alias Layout="cp ~/Nextcloud/Layouts/Layout/layout.tex ."
########### ###########
function PromptAna { function PromptAna {
local prompt_text="Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the Script of my Professor. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \\section{...} and not \\section*{...} and do not numberate the section titles." local prompt_text='Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the Script of my Professor. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
echo "$prompt_text" | pbcopy echo "$prompt_text" | pbcopy
} }
function PromptISFE { function PromptISFE {
local prompt_text="Write a short summary of the Presentation to the [] supplementing the summary with content from [] from the 'Database Systems: The complete Book' Book. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from and do not citate anything from the presentation. Please rewrite the sentences from the presentation. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \\section{...} and not \\section*{...} and do not numberate the section titles." local prompt_text='Write a short summary of the Presentation to the [] supplementing the summary with content from [] from the "Database Systems: The complete Book" Book. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from and do not citate anything from the presentation. Please rewrite the sentences from the presentation. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
echo "$prompt_text" | pbcopy echo "$prompt_text" | pbcopy
} }
function PromptMED { function PromptMED {
local prompt_text="Write a short summary of the Presentation to the []. The Summary should be 4-5 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and do not use any numbers to indicate where you got the information from. Put important definitions in separate subsections Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from and do not citate anything from the presentation. Please rewrite the sentences from the presentation. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \\section{...} and not \\section*{...} and do not numberate the section titles." local prompt_text='Write a short summary of the Presentation to the []. The Summary should be 4-5 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and do not use any numbers to indicate where you got the information from. Put important definitions in separate subsections Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from and do not citate anything from the presentation. Please rewrite the sentences from the presentation. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
echo "$prompt_text" | pbcopy echo "$prompt_text" | pbcopy
} }
function PromptMikro { function PromptMikro {
local prompt_text="Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the 'Grundzüge der Mirkoökonomik' Book. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from and do not citate anything from the presentation. Please rewrite the sentences from the presentation. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \\section{...} and not \\section*{...} and do not numberate the section titles." local prompt_text='Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the 'Grundzüge der Mirkoökonomik' Book. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from and do not citate anything from the presentation. Please rewrite the sentences from the presentation. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
echo "$prompt_text" | pbcopy echo "$prompt_text" | pbcopy
} }
function PromptSR { function PromptSR {
local prompt_text="Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the [] Script. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from and do not citate anything from the presentation or the script. Please rewrite the sentences from the presentation. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \\section{...} and not \\section*{...} and do not numberate the section titles." local prompt_text='Write a short summary in German of the Presentation to the [] supplementing the summary with content from [] from the [] Script. The Summary should be 3-4 Pages of length beginning with a short overview of the chapter followed up with the relevant information. Put important definitions, concepts and remarks in separate codeblocks of the following format: Defintion: \dfn{Title}{Definition}, concept: \thm{title}{Theorem}, remark: \nt{remark}. Please use LaTeX to write this summary and output your answer in a codeblock. Do not use any numbers to indicate where you got the information from and do not citate anything from the presentation or the script. Please rewrite the sentences from the presentation. I will input this chapter to the main file so leave out the preamble as well as the begin document section. In addition, please use normal sections i.e. \section{...} and not \section*{...} and do not numberate the section titles.'
echo "$prompt_text" | pbcopy echo "$prompt_text" | pbcopy
} }

29
setup.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/zsh
echo "========================"
echo " Setup Script "
echo "========================"
# Check if running on macOS or Linux
if [[ "$(uname)" == "Darwin" ]]; then
OS="macOS"
elif [[ "$(uname)" == "Linux" ]]; then
OS="Linux"
else
error "Unsupported OS: $(uname)"
exit 1
fi
success "Detected OS: $OS"
if [[ "$OS" == "macOS" ]]; then
echo "==========================="
echo " Installing Brew "
echo "==========================="
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "Maybe someday Linux..."
fi