Skip to content

Quick Start

Adrian Thomas edited this page Oct 2, 2025 · 5 revisions

Quick Start Guide

Get started with symlinkit 2.0 in under 5 minutes.


Installation

Linux / WSL

curl -o symlinkit https://raw.githubusercontent.com/ctrl-alt-adrian/symlinkit/main/symlinkit
chmod +x symlinkit
sudo mv symlinkit /usr/local/bin/

macOS

# 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/

Verify Installation

symlinkit --version
# Output: symlinkit 2.0.0 (Linux|Darwin|WSL)

Your First Symlink

Create Mode (-c)

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/nvim

Overwrite Mode (-o)

Replace 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/nvim

Merge Mode (-m)

Recursively 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 ~/bin

Delete Mode (-d)

Remove a symlink (source remains untouched):

# Delete a symlink
symlinkit -d ~/.config/nvim

# Delete symlinks recursively in a directory
symlinkit -dr ~/bin

Common Workflows

Dotfiles Setup

# 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

Inspecting Symlinks

# List all symlinks in home directory
symlinkit --list ~/

# Find broken symlinks
symlinkit --broken ~/

# Fix broken symlinks interactively
symlinkit --fix-broken ~/

Safe Operations

# Always use --dry-run first
symlinkit --dry-run -m ~/source ~/dest

# Review the output, then run without --dry-run
symlinkit -m ~/source ~/dest

Operation Flag Requirements

symlinkit 2.0 requires explicit operation flags for all operations.

# ❌ WRONG: No operation flag
symlinkit ~/source ~/dest

# ✅ CORRECT: Explicit operation flag
symlinkit -m ~/source ~/dest

Available operation flags:

  • -c / --create - Create new symlink
  • -o / --overwrite - Overwrite existing with symlink
  • -m / --merge - Merge directory contents
  • -d / --delete - Delete symlink

Interactive Prompts

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:

Tips & Tricks

Recursive Operations

# Recursive create (same as merge)
symlinkit -cr ~/dotfiles ~/dest

# Recursive overwrite with interactive prompts
symlinkit -or ~/dotfiles ~/dest

# Recursive delete
symlinkit -dr ~/bin

Flag Chaining

# These are equivalent
symlinkit -c -r ~/source ~/dest
symlinkit -cr ~/source ~/dest

# These are equivalent
symlinkit -d -r ~/directory
symlinkit -dr ~/directory

Dry Run Everything

# 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

Next Steps


Getting Help

# Show help
symlinkit --help

# Show version
symlinkit --version

For issues or questions:

Symlinkit Wiki Navigation

Getting Started

Features & Functionality

Development & Contributing

Clone this wiki locally