LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lnko

Simple stow-like dotfile linker

TLDR

Link packages to the home directory
$ lnko link [package1] [package2]
copy
Link packages from a specific source to a target directory
$ lnko link -d [~/dotfiles] -t [~] [package_name]
copy
Unlink a package
$ lnko unlink [package_name]
copy
Preview changes without creating symlinks
$ lnko link -n [package_name]
copy
Show status of all packages
$ lnko status
copy
Remove orphaned symlinks
$ lnko clean
copy
Force-overwrite conflicting files
$ lnko link -f [package_name]
copy

SYNOPSIS

lnko command [options] [package ...]

DESCRIPTION

lnko is a simple stow-like dotfile linker that creates relative symlinks from a source directory containing packages to a target directory. Each package is a directory whose contents mirror the target structure.It supports tree folding, ignore patterns, dry-run mode, and multiple conflict resolution strategies. When conflicts are detected, lnko provides an interactive prompt with backup, skip, overwrite, and diff options unless an auto-resolve flag is given. Compatible with existing GNU Stow symlinks.

PARAMETERS

link

Create relative symlinks from source packages to the target directory.
unlink
Remove symlinks for specified packages.
status
Display the current state of all packages and their symlinks.
clean
Remove orphaned symlinks pointing to non-existent targets.
-d, --dir dir
Specify source directory containing packages (default: current directory).
-t, --target dir
Specify target directory for symlinks (default: $HOME).
-n, --dry-run
Preview changes without creating symlinks.
-v, --verbose
Output detailed debugging information.
-b, --backup
Auto-resolve conflicts by backing up existing files to .lnko-backup/.
-s, --skip
Auto-resolve conflicts by skipping conflicting files.
-f, --force
Auto-resolve conflicts by force-overwriting.
--ignore pattern
Exclude files matching pattern (repeatable).
--no-folding
Prevent directory folding into symlinks.

CAVEATS

Requires Lua and LuaFileSystem to be installed.

HISTORY

lnko was created by luanvil and is written in Lua.

SEE ALSO

stow(8), ln(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid