refactor bashrc functions into functions.d