diff --git a/pash b/pash index 89c3645..7e12cfb 100755 --- a/pash +++ b/pash @@ -174,6 +174,10 @@ main() { umask 077 + # Ensure that we leave the terminal in a usable + # state on exit or Ctrl+C. + trap 'stty echo icanon' INT + case $1 in a*) pw_add "$2" ;; c*) pw_copy "$2" ;;