update command history length