diff --git a/.bashrc b/.bashrc
index d1b1a3ac7b4c06859a381495f3dae220f1fe563c..106e37f2d820a69ce537b0713fd0f89019e33d19 100644
--- a/.bashrc
+++ b/.bashrc
@@ -80,7 +80,7 @@ alias detectproxy='w3m http://detectportal.firefox.com/success.txt'
 alias diff='diff --unified'
 alias dpkglog="grep -v 'status\\|trigproc\\|configure' /var/log/dpkg.log"
 alias gcc='gcc --std=c99 -Wall -Wextra -Werror -pedantic'
-alias gen-mac="hexdump -n5 -e '\"02\" 5/1 \":%02X\" \"\\n\"' /dev/urandom"
+alias gen-mac='hexdump -n5 -e '\''"02" 5/1 ":%02X" "\n"'\'' /dev/urandom'
 alias gen-ssh-config="rc_make .ssh/config"
 alias hostlocal='docker run --rm --privileged --net=host gliderlabs/hostlocal'
 alias http-server='python3 -m http.server 8080'