summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2024-12-17 10:50:06 +0100
committerache <ache@ache.one>2024-12-17 10:50:06 +0100
commitcf63f8cccf92428eef240e8336a22164002da1a6 (patch)
tree0faef048b0dd463ea66352ae5d50ba3f13f4fb10
parentAdd default print for duf (diff)
Add command to generate random strings
-rw-r--r--functions/gtoken.fish4
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