Fish integration
Match fish’s colors to the btmux color scheme and optionally use btmux menus for completion and history.
btmux install-fish-integrationThis writes two files under ~/.config/fish (or $XDG_CONFIG_HOME/fish):
themes/btmux.themeuses named ANSI colors by their base16 roles, so it follows the btmux scheme, live changes included.conf.d/btmux.fishselects that theme inside btmux panes only, and overrides universalfish_color_*variables there.
btmux generate-fish-theme prints the theme alone. The Home Manager module
installs both files when programs.fish.enable is set.
To use btmux pick menus for Tab
completion, Ctrl+R history search, and cdh, add this to config.fish:
set -g btmux_pick_menus 1With Home Manager, set programs.btmux.fishPickMenus = true instead.
- In btmux panes this replaces your own
TabandCtrl+Rbindings andcdhfunction. It is read at the first prompt. - fish’s own menus remain the fallback when no client can show one.
- Tab still completes directly when there is at most one candidate.
- In vi and hybrid bindings, normal mode keeps
Ctrl+Ras redo. Ctrl+Rlists commands newest first, filtered on the current line. Line breaks in a command show asand tabs as␉.
A selected completion escapes spaces and omits a trailing space. Escape other special characters, such as parentheses, by hand. The menu opens after fish finishes computing candidates.