Simplifies a lot of logic, makes the program touch less stuff / have less files that could break, resolves #162, also improves some help messages and causes antidot init to tell the user what to do with the output / how to run it.
Also makes it marginally easier to support new shells.
Previously antidot clean would generate ~/.local/share/antidot/kvstore.json, ~/.local/share/antidot/env.sh, and ~/.local/share/antidot/alias.sh and then antidot init would create a default script that would source those two scripts, with extra logic to test if those scripts exist and other nonsense.
Now antidot clean generates ~/.local/share/antidot/kvstore.json and antidot init creates a script based on the kvstore that creates all aliases and sources all variables.
Simplifies a lot of logic, makes the program touch less stuff / have less files that could break, resolves #162, also improves some help messages and causes
antidot init
to tell the user what to do with the output / how to run it.Also makes it marginally easier to support new shells.
Previously
antidot clean
would generate~/.local/share/antidot/kvstore.json
,~/.local/share/antidot/env.sh
, and~/.local/share/antidot/alias.sh
and thenantidot init
would create a default script that would source those two scripts, with extra logic to test if those scripts exist and other nonsense.Now
antidot clean
generates~/.local/share/antidot/kvstore.json
andantidot init
creates a script based on the kvstore that creates all aliases and sources all variables.