Install scripts. Each file can be a different way to install the program.
Scripts that tell dotfiles lib that a program ins installed (this is checked before allowing any other scripts to run).
If not set dotfiles lob will just check if <program_name> is a valid command in the current shell with which <program_name>
.
Setup scripts to run after successfull install
This should echo
the path to the files you want to symlink
This should echo
the path to the files you want to copy
All files that will be linked, copied or used in install and postinstall scripts live here.
The backup
command automatically backups files listed by copy*.sh
and link*.sh
in the files
folder, but that's not always enough;
When backup is not from a file, when it's the output of some command or some manual stuff, use backup*.sh
files.
They can run whatever is needed, gather the data to be backed up and create their respective files in files
;
They can just open web pages or show instructions on how you can backup stuff;
This files are sourced any time a new shell is created. Any shell env settings and modifications a progra needs should lay here.
A common example is a program that need to add itself to the PATH variable.
All .shell_env_private
files are ignored on versioning and are usually created by a postinstall*.sh
script (e.g. git to set author name and email).
Quite the same as .shell_env
and .shell_env_private
the only difference being that it's sourced whenever a terminal program is in use (when the shell is interactive).
Those are perfect to setup command aliases and change ps1|prompt and other things that should be only important for your usage of the terminal.