Skip to content

Make "enter" staying in current pwd #20

Closed

Description

@aengelke

It'd be cool if fedora-toolbox enter would stay in the current working directory (if available in the container, e.g. ~/**). Currently, enter spawns a new shell with the cwd being the home directory, requiring to cd again.

Activity

  1. debarshiray commented on Dec 2, 2018

    @debarshiray
    Member

    Yes, I agree that we should do this. A few other people have asked for it too, and I personally feel the need for it while using fedora-toolbox.

  2. debarshiray commented on Jan 3, 2019

    @debarshiray
    Member

    One option is to add a --workdir option to podman exec and have it override the image's default working directory before executing the shell.

    I learnt in #podman that docker already has such an option, so adding it will also help with compatibility.

  3. debarshiray commented on Jan 9, 2019

    @debarshiray
    Member

    podman exec now has a --workdir option for specifying the working directory.

  4. debarshiray commented on Jan 10, 2019

    @debarshiray
    Member

    @mildred came up with a nifty hack in #30 that doesn't require podman exec --workdir.

  5. aengelke commented on Jan 10, 2019

    @aengelke
    Author

    Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions