From dc92e4ffb0ca1da71044a59723dbeea3458734e4 Mon Sep 17 00:00:00 2001 From: Maciej Sobkowski Date: Sun, 6 Apr 2025 22:07:22 +0200 Subject: fish: enable !! abbr to run last command --- .config/fish/config.fish | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.config/fish/config.fish') diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 2e10f35..fde50e2 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -21,5 +21,11 @@ if status is-interactive set fish_greeting "" + function last_history_item + echo $history[1] + end + + abbr -a !! --position anywhere --function last_history_item + fish_config theme choose tokyonight_storm end -- cgit v1.2.3-70-g09d2