Add tmn function to work inside or outside of tmux