preserve $lastexit code
Merge pull request #30 from maxslimmer/patch-1

preserve $lastexit code in function prompt()