fix(nix): fish functions are wrapped in two layers

This commit is contained in:
Léana 江 2024-01-19 23:40:11 +01:00 committed by Léana 江
parent 710441a578
commit 0b1cd71f58
17 changed files with 245 additions and 300 deletions

View file

@ -1,3 +1 @@
function snakecase
echo $argv | sed -E 's/[^A-Za-z0-9_\n]+/_/g' | sed -E 's/__+/_/g' | tr '[:upper:]' '[:lower:]'
end
echo $argv | sed -E 's/[^A-Za-z0-9_\n]+/_/g' | sed -E 's/__+/_/g' | tr '[:upper:]' '[:lower:]'