From 8cdc924cffb386ba24286f500ba0bcda43e779f6 Mon Sep 17 00:00:00 2001 From: deadc0de Date: Tue, 13 Feb 2018 16:49:38 +0100 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3fc5cef..7a2f251 100644 --- a/README.md +++ b/README.md @@ -549,15 +549,17 @@ pass="verysecurepassword" ``` Of course, this file should not be tracked by git (put it in your `.gitignore`). -Then you can invoke dotdrop with the help of an alias like that: +Then you can invoke dotdrop with the help of an alias when using dotdrop as a submodule: ``` -## when using dotdrop as a submodule alias dotdrop='eval $(grep -v "^#" ~/dotfiles/.env) ~/dotfiles/dotdrop.sh' - -## when using dotdrop from pypi -alias dotdrop='eval $(grep -v "^#" ~/dotfiles/.env) dotdrop --cfg=~/dotfiles/config.yaml' ``` -This loads all the variables from `.env` (while omitting lines starting with `#`) before calling dotdrop. + +When using dotdrop from pypi or aur, the absolute path to the binary should be used in the alias to avoid recursion issues +``` +alias dotdrop='eval $(grep -v "^#" ~/dotfiles/.env) /usr/bin/dotdrop --cfg=~/dotfiles/config.yaml' +``` + +The above aliases load all the variables from `~/dotfiles/.env` (while omitting lines starting with `#`) before calling dotdrop. # Example