summaryrefslogtreecommitdiff
path: root/.config/fish/functions/last_history_item.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fish/functions/last_history_item.fish')
-rw-r--r--.config/fish/functions/last_history_item.fish3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/fish/functions/last_history_item.fish b/.config/fish/functions/last_history_item.fish
new file mode 100644
index 0000000..2fc4d24
--- /dev/null
+++ b/.config/fish/functions/last_history_item.fish
@@ -0,0 +1,3 @@
+function last_history_item
+ echo $history[1]
+end