Bring Your Own Bash_Profile12 Jan 2015
But whenever I have to use the public workstations, I lose all my custom shortcuts.
With tons of help from Eric Schmidt, we discovered a quick & easy way to import these aliases into any workstation.
I uploaded my
.bash_profile to Github, and setup bash.dsernst.com as a shorter url redirect to it.
Then to get the aliases, just run from any terminal:
curl -L bash.dsernst.com > tmp; . tmp
Wondering what that does?
It writes the download to a file called
Then it executes that
tmpfile to add all of the aliases. (If you’re in ZSh, use
For better or worse, the aliases are only stored for the current session, so it doesn’t leave a mess on the workstation.
If you’ve honed a specific workflow, it’s really nice to be able to pull down your custom scripts on a remote machine.