Avec git add…

This commit is contained in:
Benjamin VAUDOUR 2022-10-04 07:26:02 +02:00
parent 8bdb293c3e
commit ff7218cac8
1 changed files with 17 additions and 0 deletions

17
aliases/grawlix.elv Normal file
View File

@ -0,0 +1,17 @@
use str
edit:add-var grawlix~ {|@argv|
var @chars = (str:split '' '#$%&*+=^~£§¶±÷≠Ω√∆◊')
var nbChars = (count $chars)
var length = (shuf -i 4-7 -n 1)
var graw = []
range $length | each {|_|
var ci = (shuf -i 1-$nbChars -n 1)
set @graw = $@graw $chars[(- $ci 1)]
}
set @graw = $@graw '!'
echo (str:join '' $graw)
}