[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111847":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":30,"discoverSource":31},111847,"lig","KevenGoncalves\u002Flig","KevenGoncalves","IDE-style autocomplete for your terminal on macOS, Linux and Windows.",null,"Rust",330,20,60,12,0,2,89,269,13,77.97,"MIT License",false,"main",true,[],"2026-11-23 15:11:10","2026-11-23 19:50:58","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Flogo.svg\" width=\"120\" alt=\"Lig logo: a terminal prompt with a suggestion popup under the cursor\">\n\u003C\u002Fp>\n\n\u003Ch1 align=\"center\">Lig\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cb>IDE-style autocomplete for your terminal.\u003C\u002Fb>\u003Cbr>\n  Subcommands, options, branches, packages and paths in a popup as you type.\u003Cbr>\n  zsh, bash, fish, PowerShell and cmd, on Linux, macOS and Windows. Written in Rust.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FKevenGoncalves\u002Flig\u002Freleases\u002Flatest\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FKevenGoncalves\u002Flig\" alt=\"Latest release\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FKevenGoncalves\u002Flig\" alt=\"MIT license\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fdemo.svg\" width=\"760\" alt=\"Lig in a terminal: for git c, the popup under the cursor lists checkout, cherry-pick, clean, clone, commit, config and a commit shortcut, each with what it does\">\n\u003C\u002Fp>\n\n## What is Lig?\n\nYour shell completes with `Tab`, as a flat list of words. Lig shows a popup under the cursor\nwhile you type, like a code editor: what each subcommand and option does, values from your\nsystem, and the next thing that fits on the line. It brings [Fig](https:\u002F\u002Ffig.io)'s\nexperience to any terminal, as a single binary that draws the popup inside the terminal\nitself.\n\n- **~740 commands** out of the box (git, docker, kubectl, cargo, npm, aws, gh, terraform…),\n  from the [withfig\u002Fautocomplete](https:\u002F\u002Fgithub.com\u002Fwithfig\u002Fautocomplete) specs and\n  hand-written ones; any other command is read from its `--help`.\n- **Live values**: git branches, containers, systemd units, ssh hosts, make targets, npm\n  scripts, processes…, and **package search** on npm, crates.io, Docker Hub, PyPI, Snap and Flathub.\n- Knows your **aliases, functions and variables** (`gco ` completes like `git checkout `,\n  `$HO` → `$HOME`).\n- Works in **any terminal**, in **tmux** and **zellij**, and on a server with **`lig ssh`**.\n- Themes, Nerd Font icons, any keys. Runs locally: no daemon, no account, no telemetry.\n\n## Install\n\n| System | Command |\n| --- | --- |\n| Linux, macOS | `curl -fsSL https:\u002F\u002Fgithub.com\u002FKevenGoncalves\u002Flig\u002Freleases\u002Flatest\u002Fdownload\u002Finstall.sh \\| sh` |\n| Homebrew | `brew install kevengoncalves\u002Ftap\u002Flig` |\n| Fedora, RHEL | `sudo dnf copr enable kevengoncalves\u002Flig && sudo dnf install lig` |\n| Debian, Ubuntu | see [APT](#debian-ubuntu-apt) below |\n| Windows | `irm https:\u002F\u002Fgithub.com\u002FKevenGoncalves\u002Flig\u002Freleases\u002Flatest\u002Fdownload\u002Finstall.ps1 \\| iex` |\n| Nix | see [Nix](#nix) below |\n| From source | `cargo install --path .` in a clone (Rust 1.85+) |\n\nThen turn it on in your shell and open a new terminal:\n\n```bash\nlig install            # your shell; or: lig install zsh \u002F bash \u002F fish \u002F pwsh \u002F powershell\nlig doctor             # check the setup\n```\n\n**Requirements**: Linux or macOS 11+ with zsh ≥ 5.3, bash ≥ 4.4 or fish ≥ 4.2.1 (on macOS,\nnot Apple's bash 3.2); Windows 10 1809+ with PowerShell or cmd. Optional: `curl` for\npackage search, a [Nerd Font](https:\u002F\u002Fwww.nerdfonts.com) for icons.\n\n`lig install` adds a few lines to your shell's config file (`~\u002F.zshrc`, `~\u002F.bashrc`,\n`config.fish` or the PowerShell profile), backing it up first.\nPrebuilt archives, `.deb` and `.rpm` files are on the\n[releases page](https:\u002F\u002Fgithub.com\u002FKevenGoncalves\u002Flig\u002Freleases\u002Flatest).\n\n### Debian, Ubuntu (APT)\n\n```bash\nsudo install -d \u002Fetc\u002Fapt\u002Fkeyrings\ncurl -fsSL https:\u002F\u002Fkevengoncalves.github.io\u002Flig\u002Fapt\u002Flig.gpg | sudo tee \u002Fetc\u002Fapt\u002Fkeyrings\u002Flig.gpg >\u002Fdev\u002Fnull\necho \"deb [signed-by=\u002Fetc\u002Fapt\u002Fkeyrings\u002Flig.gpg] https:\u002F\u002Fkevengoncalves.github.io\u002Flig\u002Fapt stable main\" | sudo tee \u002Fetc\u002Fapt\u002Fsources.list.d\u002Flig.list\nsudo apt update && sudo apt install lig\n```\n\n### Windows\n\nThe install script puts `lig.exe` in `%LOCALAPPDATA%\\Programs\\lig` and on your `PATH`.\n\n- **PowerShell**: `lig install` (PowerShell 7) or `lig install powershell` (5.1) starts\n  PowerShell inside Lig from your profile; scripts and other hosts (VS Code) start as usual.\n- **cmd** has no config file: `lig install cmd` adds a \"Command Prompt (lig)\" profile to\n  Windows Terminal.\n- In any other terminal, run `lig shell --shell pwsh` (or `powershell`, `cmd`) as its command.\n\n### Nix\n\nThe flake has a [home-manager](https:\u002F\u002Fgithub.com\u002Fnix-community\u002Fhome-manager) module that\ninstalls Lig, writes its config and sets up your shells (no `lig install` needed):\n\n```nix\n# flake.nix\ninputs.lig = { url = \"github:KevenGoncalves\u002Flig\"; inputs.nixpkgs.follows = \"nixpkgs\"; };\n```\n\n```nix\n# home.nix\n{ inputs, ... }:\n{\n  imports = [ inputs.lig.homeModules.default ];\n  programs.lig = {\n    enable = true;\n    settings.ui.theme = \"catppuccin\";   # written to ~\u002F.config\u002Flig\u002Fconfig.toml\n  };\n}\n```\n\n## Usage\n\nType as usual; the popup shows what fits.\n\n| Key | Action |\n| --- | --- |\n| `Tab` \u002F `↓` | next suggestion |\n| `Shift-Tab` \u002F `↑` | previous suggestion (on the first one: close the popup) |\n| `Enter` | accept the suggestion |\n| `Esc` | close the popup |\n| `Ctrl+Space` | open or close the popup on demand |\n\n- **`Enter`** completes the word you're typing (`go bui` → `go build`) or picks the first\n  suggestion after a space. On a word that's already complete (`git status`) it runs the\n  line, so `Enter` `Enter` means \"pick, then run\".\n- **Command names** don't pop up by themselves, so simple commands run with one `Enter`.\n  `Ctrl+Space` shows them; `complete_commands = true` always does.\n- **Folders** (`cd`, `mkdir`…) keep the popup open with the subfolders, with **↵ Enter** to\n  run the line and **Back** to go up.\n- **Your shell's own keys stay yours**: history with the arrows, `Tab` once the popup is\n  closed, fzf's `Ctrl+T`. Typing brings the popup back.\n\n## Configuration\n\nSettings live in `~\u002F.config\u002Flig\u002Fconfig.toml`. `lig config` prints every option with its\ndefault; the common ones:\n\n```toml\n[ui]\ntheme = \"default\"          # catppuccin, nord, dracula, gruvbox, tokyonight, light, terminal\nborder = \"rounded\"         # square, none\nicons = \"auto\"             # nerd, unicode, none\nheight = 8                 # max rows, or \"30%\"\n\n[keys]                     # `lig keys` shows any key's name\naccept = [\"enter\"]\nnext = [\"tab\", \"down\", \"ctrl-n\"]\ntoggle = [\"ctrl-space\"]\n\n[behavior]\nenter_accepts = \"auto\"     # \"always\", \"after-space\", \"never\"\ncomplete_commands = false  # pop up for command names too\nonline = true              # search package registries as you type\ndisabled_commands = []     # never show the popup for these\n```\n\nTry styles without editing anything: `lig preview --all`, `lig preview --theme nord`,\n`lig icons`. Changes apply to new terminal tabs.\n\n## Your own specs\n\nLig looks for a command's suggestions in your specs (`~\u002F.config\u002Flig\u002Fspecs\u002F`), then the\nbuilt-in ones, then the command's `--help` or man page (`\u002F?` on Windows). To change a command\nLig knows, start from its spec:\n\n```bash\nlig specs new docker       # writes docker.json in your specs folder; edit it from there\n```\n\nA new command takes a small file in the [Fig spec format](https:\u002F\u002Ffig.io\u002Fdocs\u002Freference),\ne.g. `deploy.toml`:\n\n```toml\nname = \"deploy\"\ndescription = \"Deploy the app\"\n\n[[options]]\nname = [\"-e\", \"--env\"]\nargs = { name = \"env\", suggestions = [\"staging\", \"production\"] }\n\n[[subcommands]]\nname = \"logs\"\nargs = { name = \"service\", generators = { script = [\"deploy\", \"list-services\"] } }\n```\n\n`lig specs check` reports mistakes, `lig complete \"deploy -e \"` shows the suggestions, and\n`lig specs generators` lists the built-in live values (`generators = [{ builtin = \"git:branches\" }]`).\n\n## tmux, zellij and ssh\n\n- **tmux**: works as is.\n- **zellij**: on Linux, Lig shows each pane's app to zellij, so session resurrection brings\n  the pane back as that app in the right folder, not as `lig shell`. On macOS this needs a\n  zellij with `action set-resurrect-command` (newer than 0.45.1). `LIG_NO_MIRROR=1` turns it\n  off. Don't resurrect with `zellij attach --force-run-commands`: the prompt zellij shows\n  for each pane is the safety net.\n- **ssh**: `scp` and `rsync` complete paths on the host (`scp notes.txt pi:Doc` →\n  `pi:Documents\u002F`) when the login needs no password (a key, ssh-agent or a `ControlMaster`\n  connection). `lig ssh admin@pi` logs in like `ssh` and brings the popup to the host's zsh\n  or bash, installing nothing there; with a remote command it's plain `ssh`, so\n  `alias ssh='lig ssh'` is safe.\n\n## Update and remove\n\n- **Update**: `lig update` installs the latest release (`--check` only looks). A Lig from a\n  package manager updates there, and `lig update` tells you how. Open tabs keep their version.\n- **Skip it once**: `LIG_DISABLE=1 zsh`.\n- **Remove**: `lig uninstall` (or `lig uninstall \u003Cshell>`), before removing a packaged Lig.\n\n## Troubleshooting\n\n| Problem | Try |\n| --- | --- |\n| No popup | `lig doctor` (\"running inside lig\" must be ok); open a new tab after installing. |\n| Wrong or missing suggestions | `lig complete \"\u003Cthe line>\"` shows what Lig would suggest. |\n| A key does nothing | `lig keys` shows whether the key reaches Lig, and its name. |\n| Outdated options for a command | `lig specs clear-cache` re-reads its `--help`. |\n| No `scp host:` paths | The host needs a login without a password prompt. |\n| Something else | Start a shell with `LIG_LOG=1` and read `lig.log` in `~\u002F.local\u002Fstate\u002Flig\u002F` (Linux) or `$TMPDIR\u002Flig\u002F` (macOS). |\n\n## How it works\n\nLig runs your shell in a pseudo-terminal and passes everything through. It keeps a model of\nthe screen, draws the popup under the cursor, and restores what was underneath when it\ncloses, which is why it works in any terminal (and on Wayland, where apps can't place\nfloating windows). Small shell hooks tell Lig the line: zsh reports it, bash's and cmd's are\nread off the screen, fish and PowerShell answer when Lig asks. Accepting sends a private key\nthat a shell function binds to edit the line. Slow sources run in the background, so typing\nnever waits.\n\n**Limitations**: bash's line, read from the screen, can briefly confuse Lig in a long line\nwrapping at the bottom of a full screen. Specs read from `--help` have no live values. About\na quarter of Fig's dynamic generators (JavaScript) couldn't be converted.\n\n## Development\n\n```bash\ncargo test                      # unit tests, every built-in spec included\ncargo build --release\npython3 tests\u002Ffish_pty.py       # PTY tests (also shell_smoke, tmux_placement, zellij_mirror, install…)\n```\n\nThe PTY tests drive `target\u002Frelease\u002Flig` (or `LIG_TEST_BIN`) in real shells; CI runs them on\nLinux and macOS, and an end-to-end test in PowerShell and cmd on Windows (`tests\u002Fwindows\u002F`).\nBuilt-in specs live in `specs\u002Flig\u002F` (hand-written), `specs\u002Ffig\u002F` (generated by\n`tools\u002Fupdate-fig-specs.sh`) and `specs\u002Fwindows\u002F`; packaging is described in\n[packaging\u002FREADME.md](packaging\u002FREADME.md).\n\n## Credits and license\n\nThanks to the contributors:\n[@techwizrd](https:\u002F\u002Fgithub.com\u002Ftechwizrd) (fish support),\n[@mawkler](https:\u002F\u002Fgithub.com\u002Fmawkler) (the Nix flake and home-manager module, and several fixes),\n[@nadelacruz-00](https:\u002F\u002Fgithub.com\u002Fnadelacruz-00) (the zellij mirror),\n[@jeremiasadriano](https:\u002F\u002Fgithub.com\u002Fjeremiasadriano) (the `php` and `artisan` specs) and\n[@ammachado](https:\u002F\u002Fgithub.com\u002Fammachado) (Apple Silicon macOS and zellij resurrection on macOS).\n\nThe specs in `specs\u002Ffig\u002F` come from [withfig\u002Fautocomplete](https:\u002F\u002Fgithub.com\u002Fwithfig\u002Fautocomplete),\n© Hercules Labs Inc. and contributors, MIT licensed (see [`specs\u002Ffig\u002FLICENSE`](specs\u002Ffig\u002FLICENSE)).\nLig is MIT licensed, see [`LICENSE`](LICENSE).\n","Lig 是一个跨平台终端智能补全工具，为 macOS、Linux 和 Windows 上的主流 Shell（zsh\u002Fbash\u002Ffish\u002FPowerShell\u002Fcmd）提供 IDE 风格的内联补全弹窗。它实时展示命令子命令、选项、路径、Git 分支、容器名、包管理器脚本等上下文感知建议，并支持别名、变量展开与本地包搜索（npm\u002Fcrates.io\u002FDocker Hub 等）；所有功能由单个 Rust 二进制实现，无需后台守护进程或网络连接。适用于开发者日常高频使用 CLI 工具（如 git、docker、kubectl、cargo）时提升输入效率与准确性，尤其适合多环境开发、远程 SSH 终端及 tmux\u002Fzellij 等复用场景。","2026-11-24 04:41:58","CREATED_QUERY"]