Once we have set up the markitdown environment, we can quickly start it by defining a markitdown-init function in the .zshrc or .bashrc file.
# ~/.zshrc / ~/.bashrc
# markitdown (Microsoft) Settings
markitdown-init() {
if conda info --envs | grep -q "markitdown"; then
conda activate markitdown
markitdown --version
else
echo "The Conda environment 'markitdown' does not exist. Please build 'https://github.com/microsoft/markitdown.git' first."
fi
}
Once we have set up the markitdown environment, we can quickly start it by defining a
markitdown-initfunction in the .zshrc or .bashrc file.