### Fish User Installation Source: https://github.com/lycheeverse/lychee/blob/master/lychee-bin/complete/README.md Generates and installs Fish shell completions for the current user. Fish automatically loads completions on the next shell start. ```bash dir="${XDG_CONFIG_HOME:-$HOME/.config}/fish/completions" mkdir -p "$dir" lychee --generate complete-fish > "$dir/lychee.fish" ``` -------------------------------- ### Install Lychee on Ubuntu Source: https://github.com/lycheeverse/lychee/blob/master/README.md Installs Lychee using the snap package manager on Ubuntu. ```sh snap install lychee ``` -------------------------------- ### Install Lychee with Nix Source: https://github.com/lycheeverse/lychee/blob/master/README.md Installs Lychee using Nix package manager. ```sh nix-shell -p lychee ``` -------------------------------- ### Install Lychee on Windows with WinGet Source: https://github.com/lycheeverse/lychee/blob/master/README.md Installs Lychee using the WinGet package manager on Windows. ```sh winget install --id lycheeverse.lychee ``` -------------------------------- ### Install Lychee on Windows with Scoop Source: https://github.com/lycheeverse/lychee/blob/master/README.md Installs Lychee using the Scoop package manager on Windows. ```sh scoop install lychee ``` -------------------------------- ### Zsh User Installation Source: https://github.com/lycheeverse/lychee/blob/master/lychee-bin/complete/README.md Sets up Zsh completions for the current user by creating a directory for completions and adding it to the fpath. It also ensures completion initialization. ```zsh dir="$HOME/.zsh-completions" mkdir -p "$dir" lychee --generate complete-zsh > "$dir/_lychee" ``` ```zsh fpath=($HOME/.zsh-completions $fpath) autoload -Uz compinit && compinit ``` -------------------------------- ### Fish System-wide Installation (Linux) Source: https://github.com/lycheeverse/lychee/blob/master/lychee-bin/complete/README.md Installs Fish completions system-wide on Linux. This requires root privileges. ```bash sudo lychee --generate complete-fish > /usr/share/fish/vendor_completions.d/lychee.fish ``` -------------------------------- ### Lychee-System Hook Configuration Source: https://github.com/lycheeverse/lychee/blob/master/docs/PRE_COMMIT.md Configure the `lychee-system` hook if you have Lychee manually installed via `cargo install lychee`. This hook offers fast execution without installation overhead. ```yaml - id: lychee-system args: ["--no-progress", "--exclude", "file://"] ``` -------------------------------- ### Accept Status Codes Example Source: https://github.com/lycheeverse/lychee/blob/master/README.md Demonstrates how to specify a custom list of accepted status codes for valid links. This example accepts 200, 201, 202, 203, 204, 429, and 500. ```bash lychee --accept '200..=204, 429, 500' ... ``` -------------------------------- ### Zsh On-the-fly Completions Source: https://github.com/lycheeverse/lychee/blob/master/lychee-bin/complete/README.md Generates Zsh completions on-the-fly by sourcing the output of the lychee command. This is easier to set up but may add startup time to your shell. ```zsh source <(lychee --generate complete-zsh) ``` -------------------------------- ### Install Lychee on FreeBSD Source: https://github.com/lycheeverse/lychee/blob/master/README.md Installs Lychee using the pkg package manager on FreeBSD. ```sh pkg install lychee ``` -------------------------------- ### Fish System-wide Installation (macOS with Homebrew) Source: https://github.com/lycheeverse/lychee/blob/master/lychee-bin/complete/README.md Installs Fish completions system-wide on macOS using Homebrew. This command places the completion file in the Homebrew managed directory. ```bash lychee --generate complete-fish > $(brew --prefix)/share/fish/vendor_completions.d/lychee.fish ``` -------------------------------- ### Install Lychee on macOS with MacPorts Source: https://github.com/lycheeverse/lychee/blob/master/README.md Installs Lychee using the MacPorts package manager on macOS. ```sh sudo port install lychee ```