pew: up/down arrow history doesn't work on pipenv shell on windows

In the cmd shell, usually you can hit ‘up arrow’ to get your previous command. Once you run ‘pipenv shell’, this no longer works. if you run some commands inside the pipenv shell and then hit ‘up’ it does nothing.

This bug was filed in pipenv issue tracker. According to @erinxocon this is a pew bug.

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Reactions: 5
  • Comments: 17

Most upvoted comments

@crioux’s workaround doesn’t work for me. I just get a list of available commands. I’m using cmd.exe on Windows 10, with pew 1.1.2 installed in my pipenv virtualenv.

Yea, I’m looking into setuptools and working this bug through, I’ll let you know what I find.

Okay, some color on this: There may be a simpler way to fix this.

There’s a problem with the generated ‘pew.exe’ that gets created by setuptools or whatever. Something that executable is doing to launch python is doing so in a manner that is probably piping the stdin/stdout handles or something. Directly executing the process from pew in python without using the ‘pew.exe’ does what you’d expect:

python -c "from pew import pew; pew.pew()" in <yourvirtualenv> cmd

If you do the above, arrow keys work in cmd.