<vpnworkingcheck> will be the alias we want setupnano ~/.bashrc #or whatever text editor you use
----------------------------------------------------------------------------------------------alias vpnworkingcheck='dig +short myip.opendns.com @resolver1.opendns.com' #do this at the bottom of the file then save it
---------------------------------------------------------------------------------------------source ~/.bashrc #activate new alias
---------------------------------------------------------------------------------------------alias -p #check your alias list
---------------------------------------------------------------------------------------------
to use it type in terminal: vpnworkingcheck
#you should see your public ip return
-----------------------------------------------------
https://linuxconfig.org/how-to-create-permanent-alias-on-linux #i used this article to help implement the dig command quicker and avoid going to a website