Ben Chuanlong Du's Blog

It is never too late to learn.

Environment Variables and Secure Path for sudo

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

sudo -E command_to_run

sudo $(which command_to_run)

sudo env "PATH=$PATH" nvim

The "correct" way is to update the secure path using the commanding sudo visudo.

For more discussions, please refer to …

Set Environment Varibles in IPython

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Referneces

https://stackoverflow.com/questions/37890898/how-to-set-env-variable-in-jupyter-notebook

Shell in Docker

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Configure the Shell for the RUN Command

https://docs.docker.com/engine/reference/builder/#shell

Configure the Default Shell for Terminals in Docker Containers

Just set the SHELL environment variable in …