Inside .profile (or its equivalents, such as .bash_profile or .bashrc), add the following lines at the end:
export MINIKUBE_WANTUPDATENOTIFICATION=false
export MINIKUBE_WANTREPORTERRORPROMPT=false
export MINIKUBE_HOME=$HOME
export CHANGE_MINIKUBE_NONE_USER=true
export KUBECONFIG=$HOME/.kube/config
CHANGE_MINIKUBE_NONE_USER tells minikube to assign the current user as the owner of the configuration files. MINIKUBE_HOME tells minikube to store the Minikube-specific configuration on ~/.minikube, and KUBECONFIG tells minikube to store the Kubernetes-specific configuration on ~/.kube/config.
To apply these environment variables to the current shell, run the following command:
$ . .profile
Lastly, we'll need to actually create a .kube/config configuration file to our home directory:
$ mkdir -p $HOME/.kube
$ touch $HOME/.kube/config