From 392e6593acb3cf60f5d3206e6af06402d638ebe3 Mon Sep 17 00:00:00 2001 From: Rootiest Date: Mon, 21 Sep 2026 19:29:37 -0400 Subject: [PATCH] fix(keybind): bypass history shadow in ctrl-alt-u empty-prompt recall The tricks.fish C1 history() shadow drops all args and always shows timestamps. Calling plain history --max 1 hit that shadow, dumping the entire history with timestamps instead of one plain entry. Use builtin history --max 1, matching the convention already used by fc.fish, _fzf_search_history.fish, and bash_expands.fish. --- functions/_replace_command_token.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/_replace_command_token.fish b/functions/_replace_command_token.fish index 50c3b40..2055fec 100644 --- a/functions/_replace_command_token.fish +++ b/functions/_replace_command_token.fish @@ -20,7 +20,7 @@ function _replace_command_token --description 'Remove first command token (or fi # Empty prompt: recall the last history entry first, same as it would # behave if that command were already on the commandline. if string match -rq '^\s*$' -- "$cmd" - set cmd (history --max 1) + set cmd (builtin history --max 1) end # 1. Logic for commands starting with sudo