Create symlinks for your dotfiles
Tidy Dotfile Linker v1.2.0
Usage:
tidy [flags]
Examples:
tidy [-s | -u] [directory | *]
Flags:
-f, --force overwrite existing files
-h, --help help for tidy
-s, --set use to create symlinks, mutually exclusive with unset
-u, --unset use to remove symlinks, mutually exclusive with set
git clone https://github.com/shrimp332/tidy
cd tidy
sudo make install # installs to /usr/local/bin
# or `make install-local` # installs to ~/.local/bin
go install github.com/shrimp332/tidy/cmd/tidy@latest
Manual way of making package. Will require manual updates (it's not in the aur)
git clone https://github.com/shrimp332/tidy
cd tidy
makepkg -si
Add this as a paru repo. (instructions)
paru tidy-git
{
"home": [], // ~/
"config": [], // ~/.config
"bin": [], // ~/.local/bin
"custom": {
"directory": [] // custom location
}
}
dotfiles/
├── scripts/
│ ├── .tidy.json
│ └── increasevol.sh
├── zsh/
│ ├── .tidy.json
│ ├── .zshrc
│ ├── .zshenv
│ └── zsh/
└── other/
├── .tidy.json
├── passwords.kdbx
└── obsidian/
// dotfiles/zsh/.tidy.json
{
"home": [".zshrc", ".zshenv"],
"config": ["zsh"]
}
// dotfiles/scripts/.tidy.json
{
"bin": ["increasevol.sh"]
}
// dotfiles/other/.tidy.json
{
"custom": {
"~/Notes": ["obsidian"],
"~/Documents": ["passwords.kbdx"]
}
}
cd dotfiles
tidy -s * # To create zsh, scripts, and other symlinks
tidy -u scripts # To delete scripts symlink