diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 03c3ef8..c2e7bf6 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -38,7 +38,7 @@ # DOTFILES_DIR holds the template files; DOTFILES_BACKUP_DIR holds backups # and the last-update-check timestamp. -set -g DOTFILES_VERSION "1.0.8" +set -g DOTFILES_VERSION "1.0.9" # --- Remote repository (set this to enable auto-updates) -------------------- # Example: @@ -141,3 +141,8 @@ if status is-interactive # in ~/.config/fish/functions/fish_prompt.fish. end # status is-interactive + +function last_history_item + echo $history[1] +end +abbr -a !! --position anywhere --function last_history_item