Skip to content

logotip4ik/ziglay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ziglay

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.

Installation

Using copper

copper add ziglay

Using installation script

curl -fsSL https://raw.githubusercontent.com/logotip4ik/ziglay/master/install.sh | bash

Build from source

zig build --release=fast

The binary will be available at zig-out/bin/ziglay.

Usage

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

Example

# before
~/dotfiles/nvim/.config/nvim/init.lua

# run
cd ~/dotfiles && ziglay nvim

# after
~/.config/nvim -> ~/dotfiles/nvim/.config/nvim

License

GPL-3.0

About

ziglay - stow, but zigzag. (mostly) Drop-in replacement for stow

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published