Ddev: Allow user additions to bashrc in web container

Created on 17 Jun 2018  路  8Comments  路  Source: drud/ddev

Is your feature request related to a problem? Please describe.
Coming from https://github.com/beetboxvm/beetbox I have gotten used to have the ll command (short for ls -la) available OOTB when I ssh into the VM. With ddev, I have to type the whole command, which is an annoyance.

Describe the solution you'd like
I would like it if ll worked out of the box when I ssh to the VM.

Describe alternatives you've considered
I can set up the shortcut inside the VM, but having to do this every time I destroy/rebuild a VM is really tedious.

Prioritized

Most helpful comment

@pcambra requested ~/.ssh/config configuration...

All 8 comments

I think we should probably have a directory that auto-mounts if it exists, and have the container's .bashrc include scripts in there. That way every request like this could be resolved by the user.

I changed the title to a more generic solution. I propose that we add .ddev/bash_profile and .ddev/bashrc handling to the container's .bash_profile and .bashrc, so those get included. That way every project can have custom bash setup as needed.

+1 for this please.

From https://github.com/drud/ddev/issues/1459 - host gitconfig would be completely reasonable here also.

@pcambra requested ~/.ssh/config configuration...

Another related request from @wizonesolutions : Keep bash history around.

For just doing exactly what was requested here in a post-start hook, Stack Overflow How to add alias on post-start hook?

Related: Request for composer auth file in #1641

Was this page helpful?
0 / 5 - 0 ratings