MichaelAquilina / zsh-autoswitch-virtualenv

🐍 ZSH plugin to automatically switch python virtualenvs (including pipenv and poetry) as you move between directories
GNU General Public License v3.0
507 stars 80 forks source link

Set "y" to default option when prompting to install from requirements.txt #181

Open hyerrakalva opened 2 years ago

hyerrakalva commented 2 years ago

Issue Details

Many package managers (like apt, pacman, etc.) have "y" set as the default option when prompting for a yes/no answer prior to installing/removing a package. Likewise, when this plugin prompts to install dependencies from requirements.txt or any other file, if the user hits the enter key without specifying a y/n value, the plugin should assume a value of "y", mainly to go along with the user's muscle memory of directly hitting the enter key to imply a yes.

I'm willing to work on a PR for this if you agree with what I said.

Operating System (uname -a)

Linux DESKTOP-GCI1HKQ 5.15.57.1-microsoft-standard-WSL2 #1 SMP Wed Jul 27 02:20:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

zsh version (zsh --version)

zsh 5.8.1 (x86_64-ubuntu-linux-gnu)

autoswitch-virtualenv version

echo "$AUTOSWITCH_VERSION"
3.6.0

How is zsh-autoswitch-virtualenv installed?

Steps to reproduce the issue

gist link to your zshrc

https://github.com/hyerrakalva/dotfiles/blob/master/.zshrc

MichaelAquilina commented 2 years ago

@hyerrakalva sounds good to me. I thought this was already implemented but looks like I was wrong!

Would you like to attempt this in a PR :) ?

hyerrakalva commented 2 years ago

@MichaelAquilina sure!