docker - Keeping environment variables on window split -


i use virtualenv , docker in current development set. both tools work setting environment variables in shell.

i able keep environment variables once split current window.

enter image description here

i believe common case in many developers workflow , know if there default solution within tmux or if custom configuration when splitting pane needed.

assuming you're using docker-machine, add eval statement shell rc file, ~/.bashrc. assumes machine name of default.

eval "$(docker-machine env default)" 

from documentation can see set correct env variables:

https://docs.docker.com/machine/get-started/#/create-a-machine

as noted in output of docker-machine create command, need tell docker talk new machine. can docker-machine env command.

$ docker-machine env default export docker_tls_verify="1" export docker_host="tcp://172.16.62.130:2376" export docker_cert_path="/users/<yourusername>/.docker/machine/machines/default" export docker_machine_name="default" # run command configure shell: # eval "$(docker-machine env default)" 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -