djui / alias-tips

An oh-my-zsh plugin to help remembering those aliases you defined once
781 stars 51 forks source link

not only does force abort the command I'm running, it aborts my entire zsh session #37

Closed graingert closed 7 years ago

graingert commented 7 years ago

I don't feel like I deserve that much punishment!

orestisfl commented 7 years ago

Ouch. I was starting a new zsh session and didn't notice that exit exits the whole shell. Sorry about that.

djui commented 7 years ago

Is any of your able to address this, seeing a viable solution? Otherwise I can revert the change.

orestisfl commented 7 years ago

if [[ $ret = $force_exit_code ]]; then kill -s INT $$ ; fi seems to have the desired behavior. I don't know if this can cause any undesired side effects.

pradyunsg commented 7 years ago

@orestisf1993 Feel free to make a PR for this. :)