Skip to content

Instantly share code, notes, and snippets.

@lboulard
Last active December 7, 2023 19:13
Show Gist options
  • Save lboulard/a5d039c8e741bbad89a9d73ac03e6284 to your computer and use it in GitHub Desktop.
Save lboulard/a5d039c8e741bbad89a9d73ac03e6284 to your computer and use it in GitHub Desktop.
Fancy clink #windows #dotfiles

Fancy Clink configuration

Clink was installed and is run this way:

PATH %LBPROGRAMS%\clink.1.3.13;%PATH%
clink inject -q --profile=%LBPROGRAMS%\clink_profile

To install configuration files:

  • Copy clink_settings.alt.conf to %LBPROGRAMS%\clink_profile\clink_settings.
  • Copy flexprompt_config.lua to %LBPROGRAMS%\clink_profile\flexprompt_config.lua.
  • Copy _inputrc to %LBPROGRAMS%\clink_profile\_inputrc.

Extensions in use

Quick setup

MKDIR "%LBPROGRAMS%\clink_modules"
CD "%LBPROGRAMS%\clink_modules"
git clone https://github.com/vladimir-kotikov/clink-completions.git clink-completions
git clone https://github.com/chrisant996/clink-fzf.git clink-fzf
MKLINK fzf.lua clink-fzf\fzf.lua
git clone https://github.com/chrisant996/clink-flex-prompt.git clink-flex-prompt
clink installscripts "%LBPROGRAMS%\clink_modules"
clink installscripts "%LBPROGRAMS%\clink_modules\clink-completions"
clink installscripts "%LBPROGRAMS%\clink_modules\clink-flex-prompt"
# Default key bindings for fzf with Clink.
"\S-\C-f": "luafunc:fzf_file" # Ctrl+T lists files recursively; choose one or multiple to insert them.
"\C-r": "luafunc:fzf_history" # Ctrl+R lists history entries; choose one to insert it.
"\M-c": "luafunc:fzf_directory" # Alt+C lists subdirectories; choose one to 'cd /d' to it.
"\M-b": "luafunc:fzf_bindings" # Alt+B lists key bindings; choose one to invoke it.
"\e[27;5;32~": "luafunc:fzf_complete" # Ctrl+Space uses fzf to filter match completions.
-- WARNING: This file gets overwritten by the 'flexprompt configure' wizard!
--
-- If you want to make changes, consider copying the file to
-- 'flexprompt_config.lua' and editing that file instead.
flexprompt = flexprompt or {}
flexprompt.settings = flexprompt.settings or {}
flexprompt.settings.tails = "flat"
flexprompt.settings.style = "rainbow"
flexprompt.settings.spacing = "compact"
flexprompt.settings.charset = "unicode"
flexprompt.settings.connection = "solid"
flexprompt.settings.left_prompt = "{battery:breakright}{histlabel}{cwd}{python:color=38;5;33,48;5;220}{git}"
flexprompt.settings.right_prompt = "{overtype}{exit}{duration}{time:format=%a %H:%M}"
flexprompt.settings.symbols =
{
prompt =
{
">",
winterminal = "❯",
},
}
flexprompt.settings.flow = "concise"
flexprompt.settings.powerline_font = true
flexprompt.settings.left_frame = "round"
flexprompt.settings.heads = "pointed"
flexprompt.settings.frame_color = "darkest"
flexprompt.settings.lines = "two"
flexprompt.settings.separators = "pointed"
flexprompt.settings.right_frame = "none"
flexprompt.settings.use_8bit_color = true
-- Replaces %HOME% with ~ in the cwd module.
flexprompt.settings.use_home_tilde = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment