rc.local is run by root as last part of boot.
If you want to be able to sue a value generated there, you'll have to write it to a file and read it back when you login.
Quoting my .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
# User specific aliases and functions
which is the default install version. As hinted, personal aliases should go at the end of that file.
You may or may not know that 'ls' doesn't show files beginning with '.'; use 'ls -a' to see them.