update terminal script