Adding history from terminal session