dotman is a Nushell script that acts as a minimalist dotfiles manager.
-
Link your files and directories (no system-wide files)
-
Edit your files
-
Check the dependencies for the scripts in the dotfiles (and if they're missing in your system)
-
Create the file or directory within the path pointed to by the
repo_dir
variable (e.g.~/dotfiles
) -
Put its name and path as a new line in
dotman_files
- If it's a directory, everything inside it will be linked, so something like
~/.config
will link every file and directory inside~/.config
- If it's a directory, everything inside it will be linked, so something like
-
You'll probably want to link the new file to its path outside of
repo_dir
, (e.g. linkrepo_dir/.config/sway
to~/.config/sway
), so:-
Run dotman (
./dotman
) -
Select the option to link your dotfiles
-
After that, your new file or directory will have been linked to its correct path
-
dotman doesn't link files to directories with root permissions (e.g. /etc
), so you should do this manually if you have such files.
Files must be properly added properly as described in "To add new files to dotman".
All you have to do is run dotman (./dotman
) and select to edit your files, which will show you the list of your text-based files, along with a syntax-highlighted preview on the side. When you select a file, it will open it with your default editor (for example, if vim is set as the value for the EDITOR
environment variable, it'll open the file with it).