aboutsummaryrefslogtreecommitdiff
path: root/.config/fish
diff options
context:
space:
mode:
authorMaciej Sobkowski <maciej@sobkow.ski>2025-04-06 22:07:22 +0200
committerMaciej Sobkowski <maciej@sobkow.ski>2025-04-06 22:07:22 +0200
commitdc92e4ffb0ca1da71044a59723dbeea3458734e4 (patch)
treefbc30767786e1d3dc24ebc5e41eebd807f7acd07 /.config/fish
parent56d2449e9a9e7da98c37b4bff901e7a66889c279 (diff)
fish: enable !! abbr to run last command
Diffstat (limited to '.config/fish')
-rw-r--r--.config/fish/config.fish6
1 files changed, 6 insertions, 0 deletions
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