added !! and !& to fish (since im a bash native) and modified README for yazi requirement

This commit is contained in:
Christian Figueroa 2025-04-27 05:15:54 -07:00
parent 255dcbf3df
commit 7e7a2c8125
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,27 @@
if status is-interactive if status is-interactive
# Commands to run in interactive sessions can go here # Commands to run in interactive sessions can go here
end end
function bind_bang
switch (commandline -t)[-1]
case "!"
commandline -t -- $history[1]
commandline -f repaint
case "*"
commandline -i !
end
end
function bind_dollar
switch (commandline -t)[-1]
case "!"
commandline -f backward-delete-char history-token-search-backward
case "*"
commandline -i '$'
end
end
function fish_user_key_bindings
bind ! bind_bang
bind '$' bind_dollar
end

View File

@ -6,6 +6,7 @@ Another attempt at creating a consistent and modular dotfiles configuration
* `fish`: shell * `fish`: shell
* `neovim`: editor * `neovim`: editor
* `yazi`: file manager
## Installation ## ## Installation ##