Add update function as in bashrc