diff --git a/docs/Config.md b/docs/Config.md index c67562f5..5f35dc72 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -47,7 +47,7 @@ customCommands: containers: - name: bash attach: true - command: docker exec -it {{ .Container.ID }} /bin/sh + command: "docker exec -it {{ .Container.ID }} /bin/sh -c 'eval $(grep ^$(id -un): /etc/passwd | cut -d : -f 7-)'" serviceNames: [] oS: openCommand: open {{filename}} diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index edf4591b..8c8fa8a9 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -344,7 +344,7 @@ func GetDefaultConfig() UserConfig { Containers: []CustomCommand{ { Name: "bash", - Command: "docker exec -it {{ .Container.ID }} /bin/sh", + Command: "docker exec -it {{ .Container.ID }} /bin/sh -c 'eval $(grep ^$(id -un): /etc/passwd | cut -d : -f 7-)'", Attach: true, }, },