Open RangHo opened 1 year ago
Currently, installation of a dotfile package means that the "package manifest" script gets copied to the local dotfile directory. In order to migrate away from stow
, I may have to change how this thing works in the first place.
One option is to keep track of the changes to install a package using special commands. It would look something like:
# This package installs a native package named "vim"
native vim
# This package copies the file below from elsewhere
copy ~/.local/bin/awesome-binary
# This package creates a symlink
symlink ~/.config/awesome-binary/config.toml
This should allow uninstallation logic to effectively "undo" any changes made to the system. Dependency management might get even more complex, but I guess I came way too far.
Currently,
stow
is being used to create symbolic links automatically. However, it does create some hassle when there are other symbolic links in the home directory (i.e. WSL and Android).Some package don't even require
stow
in the first place, so let's ditch that altogether and make one myself.It has to be done before December, as I need to set up a fresh system by then.