logotip4ik/ziglay
ziglay - stow, but zigzag. (mostly) Drop-in replacement for stow
stow, but zigzag. Drop-in replacement for stow
ziglay is a lightweight symlink manager written in Zig. It manages the installation of software packages by creating symbolic links from a package directory to a target directory, similar to GNU Stow.
copper add ziglay
curl -fsSL https://raw.githubusercontent.com/logotip4ik/ziglay/master/install.sh | bash
zig build --release=fast
The binary will be available at zig-out/bin/ziglay.
ziglay [OPTIONS...] [-D|-S|-R] <package>
Options:
-d DIR, --dir=DIR Set stow dir to DIR (default is current dir)
-t DIR, --target=DIR Set target to DIR (default is parent of stow dir)
-S, --stow Stow the package names that follow this option
-D, --delete Unstow the package names that follow this option
-R, --restow Restow (like stow -D followed by stow -S)
-n, --no, --simulate Do not actually make any filesystem changes
-v, --verbose[=N] Increase verbosity (levels are from 0 to 5;
-v or --verbose adds 1; --verbose=N sets level)
-V, --version Show stow version number
-h, --help Show this help
# before
~/dotfiles/nvim/.config/nvim/init.lua
# run
cd ~/dotfiles && ziglay nvim
# after
~/.config/nvim -> ~/dotfiles/nvim/.config/nvim
GPL-3.0