[FIX] odoo-shippable: use virtualenv plugin for zsh and allow prompt elements
Just as simply enable virtualenv
plugin for zsh, showing prompt correctly
Tested:
~/d/odoo-shippable git:master-zsh-virtualenv-osval ❯ docker build -f Dockerfile -t vauxoo/zshenv .
Sending build context to Docker daemon 38.91kB
...
Step 7/7 : EXPOSE 5432 8069 8070 8071 8072 22 60000-60005/udp
---> Using cache
---> 081b4fd58076
Successfully built 081b4fd58076
Successfully tagged vauxoo/zshenv:latest
~/d/odoo-shippable git:master-zsh-virtualenv-osval ❯ docker run -it --name zshenv_test --entrypoint=zsh -e LANG=en_US.UTF-8 -p 3502:8069 -itP 081b4fd58076
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
(nodejs)(python2.7) ➜ / %
~/d/odoo-shippable git:master-zsh-virtualenv-osval ❯ docker exec --user odoo -it zshenv_test bash
(nodejs)(python2.7) [odoo@6ab56809c21e]/$
$ cd
(nodejs)(python2.7) [odoo@6ab56809c21e]~$
$ exit
~/d/odoo-shippable git:master-zsh-virtualenv-osval ❯ docker exec --user odoo -it zshenv_test zsh
(nodejs)
[6:17:31] /
$ python --version
Python 2.7.12
(nodejs)
[6:17:42] ~
$
~/d/odoo-shippable git:master-zsh-virtualenv-osval ❯