feat(fish): add some useful plugins

This commit is contained in:
Stefan Imhoff
2023-01-05 11:23:13 +01:00
parent 1191898414
commit c86a65bf2b
16 changed files with 530 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
function _autopair_insert_right --argument-names key
set --local buffer (commandline)
set --local before (commandline --cut-at-cursor)
switch "$buffer"
case "$before$key"\*
commandline --cursor (math (commandline --cursor) + 1)
case \*
commandline --insert -- $key
end
end