mirror of
https://github.com/prdlk/television.git
synced 2026-11-02 21:22:53 +00:00
Import from root chezmoi source
This commit is contained in:
commit
c8c8c9a000
77 files changed
+2443
No files matched your search
@@ -0,0 +1,20 @@
|
||||
[metadata]
|
||||
name = "python-venvs"
|
||||
description = "Find Python virtual environments"
|
||||
requirements = ["find"]
|
||||
|
||||
[source]
|
||||
command = "find ~ -maxdepth 5 -type f -name 'pyvenv.cfg' 2>/dev/null | xargs -I{} dirname {}"
|
||||
|
||||
[preview]
|
||||
command = "cat '{}/pyvenv.cfg' 2>/dev/null && echo '' && echo 'Packages:' && '{}/bin/pip' list --format=columns 2>/dev/null | head -20"
|
||||
|
||||
[actions.activate]
|
||||
description = "Open a shell with the selected venv activated"
|
||||
command = "source '{}/bin/activate' && $SHELL"
|
||||
mode = "execute"
|
||||
|
||||
[actions.packages]
|
||||
description = "List all packages in the selected venv"
|
||||
command = "'{}/bin/pip' list | less"
|
||||
mode = "execute"
|
||||
Reference in new issue
Block a user