From f2a1fc853fab9e08e7c9e32ea838a20131071d0a Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Thu, 10 Jul 2025 20:09:15 +0200 Subject: [PATCH] fish: set cursor to line, update keybind since it was not recognized by tmux --- .config/fish/conf.d/04_keybinds.fish | 2 +- .config/fish/config.fish | 2 +- .config/fish/functions/fish_prompt.fish | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/fish/conf.d/04_keybinds.fish b/.config/fish/conf.d/04_keybinds.fish index 00e2c41..a00ed49 100644 --- a/.config/fish/conf.d/04_keybinds.fish +++ b/.config/fish/conf.d/04_keybinds.fish @@ -8,5 +8,5 @@ bind k 'if commandline --paging-mode; commandline --function up-line; else; comm # tmux-sessionizer (Ctrl+n) bind ctrl-n 'tmux-sessionizer' -bind shift-enter 'accept-autosuggestion' +bind : 'accept-autosuggestion' diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 22cb279..d714361 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,3 +1,3 @@ if status is-interactive - echo -ne "\e[6 q" # Set cursor to a line (bar) style + # Commands to run in interactive sessions can go here end diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish index c17450e..5f8d952 100644 --- a/.config/fish/functions/fish_prompt.fish +++ b/.config/fish/functions/fish_prompt.fish @@ -86,5 +86,5 @@ function fish_prompt end end - echo -n -s ' '$cwd $repo_info $normal ' ' + echo -n -s -e ' '$cwd $repo_info $normal ' \e[6 q' end