Posts with the tag: linux wifi

When to Make Shell Wrappers

Read in 2 minutes ·

Often, some command-line tools might have hard-to-remember sequences for certain kinds of actions. In these cases, it is completely reasonable to make shell functions to wrap those tools. Example with nmcli A good quick example of this is nmcli, the command-line tool for controlling NetworkManager on Linux. The multi-part command for connecting to a wifi network is pretty different than reconnecting to a network. Listing available networks nmcli dev wifi list Connecting for the first time sudo nmcli --ask dev wifi connect <some-ssid> Re-connecting in the future nmcli con up <some-ssid> Wrapper shell functions for nmcli Here are some tab-completable shell functions defined in my base/commands.