Skip to content

limactl shell default workdir #3758

@tcuongd

Description

@tcuongd

Description

limactl shell MACHINE

by default tries to cd $HOME based on the host's home directory:

lima/cmd/limactl/shell.go

Lines 133 to 134 in 1381317

// changeDirCmd := "cd workDir || exit 1" if workDir != ""
// := "cd hostCurrentDir || cd hostHomeDir" if workDir == ""

Would it make more sense to cd to the VM's home directory instead? What is the best way to configure a default that is guaranteed to exist on the VM?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/clilimactl CLI user experiencequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions