added !! and !& to fish (since im a bash native) and modified README for yazi requirement
This commit is contained in:
parent
255dcbf3df
commit
7e7a2c8125
@ -1,3 +1,27 @@
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user