Force Display Captive Mac OS

Sometimes, after connecting to a WiFi network with a captive login Mac OS doesn't show the login page. Depending on the captive configuration, it can be mitigated by opening a non-https page. The request will be captured and you will be redirected to the login page. However, it doesn't always work. In this case you can force display the MacOS captive login screen with this command: open /System/Library/CoreServices/Captive\ Network\ Assistant.app

Reusing an argument from the previous command

Quite often you need to call several commands with the same argument one after another. The most common example is creating a folder and then switching into it. This can be done with the help of !$ or $_. The former is substituted with the last word of the previous command as recorded in history and the latter is a shell parameter that expands to the last argument of the previous command:
Read more