mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-21 23:01:03 +00:00
remove custom command from default config given that it is now inbuilt
This commit is contained in:
parent
100fc69f85
commit
d3e84881bb
2 changed files with 17 additions and 16 deletions
|
|
@ -46,12 +46,6 @@ commandTemplates:
|
|||
dockerComposeConfig: '{{ .DockerCompose }} config'
|
||||
checkDockerComposeConfig: '{{ .DockerCompose }} config --quiet'
|
||||
serviceTop: '{{ .DockerCompose }} top {{ .Service.Name }}'
|
||||
customCommands:
|
||||
containers:
|
||||
- name: bash
|
||||
attach: true
|
||||
command: "docker exec -it {{ .Container.ID }} /bin/sh -c 'eval $(grep ^$(id -un): /etc/passwd | cut -d : -f 7-)'"
|
||||
serviceNames: []
|
||||
oS:
|
||||
openCommand: open {{filename}}
|
||||
openLinkCommand: open {{link}}
|
||||
|
|
@ -84,3 +78,16 @@ The available attributes are:
|
|||
- bold
|
||||
- reverse # useful for high-contrast
|
||||
- underline
|
||||
|
||||
## Custom Commands
|
||||
|
||||
You can add custom commands like so:
|
||||
|
||||
```yaml
|
||||
customCommands:
|
||||
containers:
|
||||
- name: bash
|
||||
attach: true
|
||||
command: 'docker exec -it {{ .Container.ID }} bash'
|
||||
serviceNames: []
|
||||
```
|
||||
|
|
|
|||
|
|
@ -339,16 +339,10 @@ func GetDefaultConfig() UserConfig {
|
|||
ViewContainerLogs: "docker logs --timestamps --follow --since=60m {{ .Container.ID }}",
|
||||
},
|
||||
CustomCommands: CustomCommands{
|
||||
Containers: []CustomCommand{
|
||||
{
|
||||
Name: "bash",
|
||||
Command: "docker exec -it {{ .Container.ID }} /bin/sh -c 'eval $(grep ^$(id -un): /etc/passwd | cut -d : -f 7-)'",
|
||||
Attach: true,
|
||||
},
|
||||
},
|
||||
Services: []CustomCommand{},
|
||||
Images: []CustomCommand{},
|
||||
Volumes: []CustomCommand{},
|
||||
Containers: []CustomCommand{},
|
||||
Services: []CustomCommand{},
|
||||
Images: []CustomCommand{},
|
||||
Volumes: []CustomCommand{},
|
||||
},
|
||||
BulkCommands: CustomCommands{
|
||||
Services: []CustomCommand{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue