0
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
Just a suggestion. Why not create a git repository and host on github. And when you want it just do a git clone. – C0deDaedalus – 2018-01-03T14:29:29.920
@C0deDaedalus Good idea could also do this - Dropbox was just a quick easy way – user3728501 – 2018-01-03T15:29:32.670