Store CURRENT_COMMAND and LAST_COMMAND in variable, and replace 'fc -nl -1' with 'eval $LAST_COMMAND' which can run the last command may not in history when spaces before the command, which 'fc -nl -1' can't.
Store CURRENT_COMMAND and LAST_COMMAND in variable, and replace 'fc -nl -1' with 'eval $LAST_COMMAND' which can run the last command may not in history when spaces before the command, which 'fc -nl -1' can't.