fish: cleanup

This commit is contained in:
Primrose 2024-07-20 10:44:27 +02:00
parent 0933e5e956
commit 505edb2ffb
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 6 additions and 0 deletions

View file

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