all repos — dotfiles @ 85fd197ffbdda5158c0d85904dc1a98364065d6c

linux dotfiles

add slugen
Prithu Goswami prithugoswami524@gmail.com
Wed, 26 Aug 2020 05:16:18 +0530
commit

85fd197ffbdda5158c0d85904dc1a98364065d6c

parent

ce78d7e47d15e68b7fc90ff5e14d6fb47d5df779

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M .bashrc.bashrc

@@ -128,3 +128,8 @@ HISTSIZE=10000000

HISTFILESIZE=10000000 PROMPT_COMMAND='history -a' HISTIGNORE='ls:bg:fg:history:cd:rm' + +slugen () { + # generate a slug of alphabets + dd if=/dev/urandom status=none bs=1024 count=1 | strings | tr -d '[:space:][:punct:][:digit:]' | cut -c -${1:-4} +}