Join and leave known networks by device name

For future reference here is how I got it working on Ubuntu with default shell.

Add this to ~/.bashrc file:

if [ -f $HOME/.aliases-zt ]; then
    source $HOME/.aliases-zt
fi

Add this to ~/.aliases-zt file:

alias ztjoin-evilcorp='sudo zerotier-cli join XXXXXXXXXXXXXXXX'
alias ztleave-evilcorp='sudo zerotier-cli leave XXXXXXXXXXXXXXXX'

alias ztjoin-othercorp='sudo zerotier-cli join YYYYYYYYYYYYYYYY'
alias ztleave-othercorp='sudo zerotier-cli leave YYYYYYYYYYYYYYYY'