feat(fish): add some plugins, update functions

This commit is contained in:
fbachus committed 2025-01-10 02:01:36 +01:00
1 parent 77cb47e4b5
commit 32f6b882a5
7 files changed
+58 -3

No files matched your search

@@ -0,0 +1,9 @@
function _puffer_fish_expand_dots -d 'expand ... to ../.. etc'
set -l cmd (commandline --cut-at-cursor)
set -l split (string split -- ' ' $cmd)
if string match --quiet --regex -- '^(\.\./)*\.\.$' $split[-1]
commandline --insert '/..'
else
commandline --insert '.'
end
end