Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 authored Feb 13, 2018
1 parent 9d993da commit 8cdc924
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
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'
```
This loads all the variables from `.env` (while omitting lines starting with `#`) before calling dotdrop.
The above aliases load all the variables from `~/dotfiles/.env` (while omitting lines starting with `#`) before calling dotdrop.
# Example
Expand Down

0 comments on commit 8cdc924

Please sign in to comment.