Repository navigation
Quick Start
Adrian Thomas edited this page Oct 2, 2025
·
5 revisions
Get started with symlinkit 2.0 in under 5 minutes.
curl -o symlinkit https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/symlinkit
chmod +x symlinkit
sudo mv symlinkit /usr/local/bin/# Install coreutils for grealpath
brew install coreutils
# Install symlinkit
curl -o symlinkit https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/symlinkit
chmod +x symlinkit
sudo mv symlinkit /usr/local/bin/symlinkit --version
# Output: symlinkit 2.0.0 (Linux|Darwin|WSL)Create a new symlink (fails if destination already exists):
# Create symlink to a file
symlinkit -c ~/dotfiles/.bashrc ~/.bashrc
# Create symlink to a directory
symlinkit -c ~/dotfiles/nvim ~/.config/nvimReplace existing file/directory with a symlink:
# Replace existing file with symlink
symlinkit -o ~/dotfiles/.zshrc ~/.zshrc
# Replace existing directory with symlink
symlinkit -o ~/dotfiles/nvim ~/.config/nvimRecursively symlink directory contents:
# Symlink all files in ~/dotfiles/scripts to ~/bin
symlinkit -m ~/dotfiles/scripts ~/bin
# Dry run first to preview changes
symlinkit --dry-run -m ~/dotfiles/scripts ~/binRemove a symlink (source remains untouched):
# Delete a symlink
symlinkit -d ~/.config/nvim
# Delete symlinks recursively in a directory
symlinkit -dr ~/bin# Preview changes
symlinkit --dry-run -m ~/dotfiles/.config ~/.config
# Apply changes
symlinkit -m ~/dotfiles/.config ~/.config
# Link individual files
symlinkit -o ~/dotfiles/.zshrc ~/.zshrc
symlinkit -o ~/dotfiles/.bashrc ~/.bashrc# List all symlinks in home directory
symlinkit --list ~/
# Find broken symlinks
symlinkit --broken ~/
# Fix broken symlinks interactively
symlinkit --fix-broken ~/# Always use --dry-run first
symlinkit --dry-run -m ~/source ~/dest
# Review the output, then run without --dry-run
symlinkit -m ~/source ~/destsymlinkit 2.0 requires explicit operation flags for all operations.
# ❌ WRONG: No operation flag
symlinkit ~/source ~/dest
# ✅ CORRECT: Explicit operation flag
symlinkit -m ~/source ~/destAvailable operation flags:
-
-c/--create- Create new symlink -
-o/--overwrite- Overwrite existing with symlink -
-m/--merge- Merge directory contents -
-d/--delete- Delete symlink
If you don't provide source/destination, symlinkit will prompt you:
symlinkit -o
# Prompts: Enter source directory:
# Prompts: Enter destination directory:Inspection tools also accept optional directory arguments:
# Provide directory
symlinkit --list ~/dotfiles
# Or let it prompt
symlinkit --list
# Prompts: Enter directory to list symlinks:# Recursive create (same as merge)
symlinkit -cr ~/dotfiles ~/dest
# Recursive overwrite with interactive prompts
symlinkit -or ~/dotfiles ~/dest
# Recursive delete
symlinkit -dr ~/bin# These are equivalent
symlinkit -c -r ~/source ~/dest
symlinkit -cr ~/source ~/dest
# These are equivalent
symlinkit -d -r ~/directory
symlinkit -dr ~/directory# Preview before applying
symlinkit --dry-run -c ~/source ~/dest
symlinkit --dry-run -o ~/source ~/dest
symlinkit --dry-run -m ~/source ~/dest
symlinkit --dry-run -d ~/symlink- Usage Examples - More real-world examples
- Symlink Modes - Detailed explanation of CRUD operations
- Inspection Tools - Learn to analyze existing symlinks
- API Reference - Complete flag reference
# Show help
symlinkit --help
# Show version
symlinkit --versionFor issues or questions:
Symlinkit Wiki Navigation
Getting Started
Features & Functionality
Development & Contributing