When running bluefogger I noticed the alias is being changed on the local system
however on a remote device (in this case a Samsung phone) when the phone
displays the devices identified during a scan by the phones bluetooth, the system
name of the host computer is being displayed instead of the bluefogger app alias.
As a consequence the Samsung user sees Bung-Fu1, Bung-Fu2, and Bung-Fu3
instead of the aliases which should of have been, Alice'sOne, Marty's, JumpRope,
etc.

To work around this I decided to write a script to change the hostname of the
system on the fly. Even though hostname and hostnamectl do change
the system name in the file (./etc/hostname) it requires closing the terminal
window and restarting bluefogger to pick up the change.

Is there a way to pick up the change in the hostname without having to close
and open another terminal window?