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,9 @@
function _autopair_backspace
set --local index (commandline --cursor)
set --local buffer (commandline)
test $index -ge 1 &&
contains -- (string sub --start=$index --length=2 -- "$buffer") $autopair_pairs &&
commandline --function delete-char
commandline --function backward-delete-char
end