mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
fish: cleanup
This commit is contained in:
parent
0933e5e956
commit
505edb2ffb
3 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue