aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mkshrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkshrc b/mkshrc
index 02bfedb..2aac943 100644
--- a/mkshrc
+++ b/mkshrc
@@ -212,6 +212,9 @@ set_retro() {
export TERM="$(echo $TERM | sed -e's/-256color$//')"
}
randmacgen() {
+ # This seems to be needed on FreeBSD, I'll have to look into
+ # exactly what is causing this and what the differences are
+ LC_COLLATE=c
tr -c -d '0123456789abcdef' < /dev/urandom \
| head -c 12 \
| sed 's!^M$!!;s!\-!!g;s!\.!!g;s!\(..\)!\1:!g;s!:$!!'