diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-04-26 21:56:03 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-04-26 21:56:03 -0400 |
| commit | d6f10eb8171a0556924840548cd1e9a6b10b025d (patch) | |
| tree | 99dbb3a6e8fbd906e82e9ae84568f8a59a466c33 /mkshrc | |
| parent | 66b4b0f37c7923630ea42420b8cfc44210ffb987 (diff) | |
| download | dotfiles-d6f10eb8171a0556924840548cd1e9a6b10b025d.tar.gz dotfiles-d6f10eb8171a0556924840548cd1e9a6b10b025d.tar.xz | |
Added a random mac address generator
Diffstat (limited to 'mkshrc')
| -rw-r--r-- | mkshrc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -210,6 +210,11 @@ set_retro() { alias nvim="$EDITOR" export TERM="$(echo $TERM | sed -e's/-256color$//')" } +randmacgen() { + tr -c -d '0123456789abcdef' < /dev/urandom \ + | head -c 12 \ + | sed 's!^M$!!;s!\-!!g;s!\.!!g;s!\(..\)!\1:!g;s!:$!!' +} # Run Steam unfuck_steam() { LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' /usr/bin/steam |
