diff --git a/recht.plugin.zsh b/recht.plugin.zsh index f6c2ce4..195bfc9 100644 --- a/recht.plugin.zsh +++ b/recht.plugin.zsh @@ -19,7 +19,7 @@ function recht() { return 1; fi # Generate local path and remote url - local docPath=~/"Documents/Uni/Recht/_docs/${docName}.pdf"; + local docPath="${docsDir}/${docName}.pdf"; local docUrl="${serverUrl}/${docPartUrl}.pdf"; # Download if local version not given if [ ! -e "$docPath" ]; then