I just use bash aliases in my .profile<p>----<p>alias dm=&quot;docker-machine&quot;<p>alias dc=&quot;docker-compose&quot;<p>alias denv=&#x27;function __denv() { eval &quot;$(dm env $@)&quot;; unset -f __denv; }; __denv&#x27;<p>----<p>dm create --driver virtualbox local<p>denv local<p>Also works with swarm params:<p>denv local --swarm swarm-master