Create a .env system
Closed this issue · 3 comments
BosEriko commented
- Maybe call it .env.z.sh.
- add it to your gitignore
- source it on .zshrc
- create example.env.z.sh
- dont source it on .zshrc
- add $STORAGE and $OS on it
- save .env.z.sh on keepass for both osx and windows
- Update the readme.md to source .env.z.sh before running the install script
- Add instructions on how to add .env.z.sh on your new system because it's ignored in .gitignore
BosEriko commented
On osx you can use keychain instead.
https://scriptingosx.com/2021/04/get-password-from-keychain-in-shell-scripts/
BosEriko commented
Windows alternative
https://stackoverflow.com/questions/442923/windows-equivalent-of-os-x-keychain
BosEriko commented
You can include it on the very top of the install script to avoid having too much things to enter on the README.md