osrf / rocker

A tool to run docker containers with overlays and convenient options for things like GUIs etc.
Apache License 2.0
584 stars 75 forks source link

Added bashrc_extesions extension #296

Open agyoungs opened 1 month ago

agyoungs commented 1 month ago

This allows you to customize the .bashrc in any container. You can achieve something similar by using the --volume ~/.bashrc argument, but that's not always what you want. Sometimes you want to use the base image's native .bashrc and just extend it for your use case. You can specify a list of files/URLs of your favorite extensions

I often use --bashrc-extensions https://gist.githubusercontent.com/agyoungs/64f19391f864d0ea082b8a4d87a90d2b/raw/.bash-prompt.sh as that one is super helpful for me, but this extension is generic enough to allow anyone to customize it for their use case.

bashrc extension gist-link