fuzzix dot org

Intgrating Alacritty with Clink

24 May 2021

Update 23 Aug 2023 A fork of clink by Chris Antos provides support for Windows 11, along with automagic updates and many additional quality-of-life features. The integration method outlined below still works, though you'll have to change the clink exe path to match the one installed on your system (in my case "C:\Program Files (x86)\clink\clink_x64.exe").

To my shame, I still haven't learned PowerShell... I still use CMD.EXE with the Readline features provided by Clink, along with a bunch of GNU tools in my path.

Integrating Clink into the Alacritty terminal emulator wasn't immediately obvious, so here'e my solution. Open %APPDATA%\alacritty\alacritty.yml, find the shell section and set it to:

shell:
  program: cmd
    args:
        - /k ""C:\Program Files (x86)\clink\0.4.9\clink_x64.exe" inject --profile %LOCALAPPDATA%\clink\"