some bash completion and bashrc functions