rcaloras / bash-preexec

⚡ preexec and precmd functions for Bash just like Zsh.
MIT License
862 stars 94 forks source link

Handle unbound PROMPT_COMMAND #118

Closed gaelicWizard closed 3 years ago

gaelicWizard commented 3 years ago

Expressly handle if $PROMPT_COMMAND is previously undefined. This is a follow-on to #101. Alsö, declare the function arrays so that other scripts which depend on this one don't have to deal with them being unbound until the first prompt.

gaelicWizard commented 3 years ago

Is there anything I can do to help this get merged?

rcaloras commented 3 years ago

@gaelicWizard thanks for the PR. Merging in.