drying out and cleaning up bash profile functions