Move def to .bashrc as a function