Found a great bash utility called “thefuck” that corrects and reruns your previously incorrect console command. Installs on macOS via homebrew with “brew install thefuck” github.com/nvbn/thefuck