xpipe-io / xpipe

Your entire server infrastructure at your fingertips
https://xpipe.io
Apache License 2.0
3.42k stars 88 forks source link

Cannot use tab in docker containers' shells #174

Closed KyllianBeguin closed 10 months ago

KyllianBeguin commented 10 months ago

Hi !

The problem

I want to use shells in my docker containers, but I cannot use tab to autocomplete the files' name. ErrorShells You'll notice in the gif that I firstly open a shell in the VM, in which tab is working

To reproduce

  1. Open a docker shell
  2. Write the beginning of a file's name
  3. Use tab
crschnick commented 10 months ago

By default, XPipe opens a sh in your docker container. These usually don't support autocompletion and other features.

What you are looking for is probably bash. The reason XPipe defaults to sh is that containers very rarely come with more than just the bare essentials, which is sh.

You can fix this by right clicking the container -> Find available connections -> Select shell environments. If any other shell, such as bash, is installed that supports autocompletion it should be added there.

KyllianBeguin commented 10 months ago

Figured it today ! Thank you ! (Off topic) Should I consider start learning some sh? 😅

crschnick commented 10 months ago

Great.

If you're planning to frequently work with containers, getting familiar with sh itself and how it differs to bash might be a good idea. Because you will only find a variant of sh on many containers.

crschnick commented 10 months ago

I guess this can be closed then