Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user additions to bashrc in web container #926

Closed
klonos opened this issue Jun 17, 2018 · 8 comments
Closed

Allow user additions to bashrc in web container #926

klonos opened this issue Jun 17, 2018 · 8 comments
Labels
Prioritized We expect to do this in an upcoming release

Comments

@klonos
Copy link
Contributor

klonos commented Jun 17, 2018

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.

@rfay
Copy link
Member

rfay commented Jun 17, 2018

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.

@rfay rfay changed the title Have ll command (ls -la) work out of the box Allow user additions to bashrc in web container Jun 19, 2018
@rfay
Copy link
Member

rfay commented Jun 19, 2018

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.

@johndwells
Copy link

+1 for this please.

@rfay rfay added the Prioritized We expect to do this in an upcoming release label Jan 31, 2019
@rfay
Copy link
Member

rfay commented Feb 15, 2019

From #1459 - host gitconfig would be completely reasonable here also.

@rfay
Copy link
Member

rfay commented May 7, 2019

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

@rfay
Copy link
Member

rfay commented May 21, 2019

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

@rfay
Copy link
Member

rfay commented May 29, 2019

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

@rfay
Copy link
Member

rfay commented Jun 6, 2019

Related: Request for composer auth file in #1641

rfay added a commit that referenced this issue Jul 16, 2019
…istent bash history, for #926 (#1688)

* Make bash history persist in web and db containers, for #926
* Add ddev-router to list of trusted names
* Give image names to built web and db images
* Use 10.1 Docker mariadb 10.1.40, same as 10.1.40-bionic
* ssh-agent and bgsync needs shadow package to allow high userids
@rfay rfay added this to the v1.10 milestone Jul 19, 2019
@rfay rfay closed this as completed in 6b76de8 Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prioritized We expect to do this in an upcoming release
Projects
None yet
Development

No branches or pull requests

3 participants