I occasionally have to re-install operating systems on the various linux machines which I manage. Every time I do this, I have to copy the .bashrc file to a USB drive before wiping the old system, and then put it back after I've installed a new system. (And perhaps edit it if something is no longer compatiable.)
This is annoying, and I usually stick to one version of a Linux OS and install it on most of my machines, so I've been trying to store my .bashrc content in a new file inside my Dropbox folder.
For example, I have put HISTTIMEFORMAT="%F %T " in a file named mybash inside my Dropbox folder.
What do I need to put inside my .bashrc file to "load all the stuff from the mybash file"?
I tried this, but it didn't seem to work?
# Load bash custom files
if [ -f /home/user/Dropbox/mybash ]
then
. /home/user/Dropbox/mybash
fi