diff options
| author | ache <ache@ache.one> | 2024-12-17 10:50:06 +0100 |
|---|---|---|
| committer | ache <ache@ache.one> | 2024-12-17 10:50:06 +0100 |
| commit | cf63f8cccf92428eef240e8336a22164002da1a6 (patch) | |
| tree | 0faef048b0dd463ea66352ae5d50ba3f13f4fb10 | |
| parent | Add default print for duf (diff) | |
Add command to generate random strings
| -rw-r--r-- | functions/gtoken.fish | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/gtoken.fish b/functions/gtoken.fish new file mode 100644 index 0000000..5fed9dd --- /dev/null +++ b/functions/gtoken.fish @@ -0,0 +1,4 @@ + +function gtoken -d "Create a token randomly from Python" + python -c "import string;import random;print(''.join(random.choice(string.ascii_letters + string.digits) for i in range($argv[1])))" +end |