mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 22:59:15 +00:00
nix!: refactored homeModules
This commit is contained in:
parent
1c48edddf4
commit
e9f8ccd2b3
50 changed files with 14 additions and 41 deletions
5
nix/homeModules/common/fish/functions/snakecase.fish
Normal file
5
nix/homeModules/common/fish/functions/snakecase.fish
Normal file
|
|
@ -0,0 +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