mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
27 lines
542 B
TOML
27 lines
542 B
TOML
[metadata]
|
|||
|
|
name = "pip-packages"
|
||
|
|
description = "List installed Python packages"
|
||
|
|
requirements = ["pip"]
|
||
|
|
|
||
|
|
[source]
|
||
|
|
command = "pip list --format=freeze 2>/dev/null | cut -d= -f1"
|
||
|
|
|
||
|
|
[preview]
|
||
|
|
command = "pip show '{}'"
|
||
|
|
|
||
|
|
[ui]
|
||
|
|
layout = "portrait"
|
||
|
|
|
||
|
|
[keybindings]
|
||
|
|
ctrl-u = "actions:upgrade"
|
||
|
|
ctrl-d = "actions:uninstall"
|
||
|
|
|
||
|
|
[actions.upgrade]
|
||
|
|
description = "Upgrade the selected package"
|
||
|
|
command = "pip install --upgrade {}"
|
||
|
|
mode = "execute"
|
||
|
|
|
||
|
|
[actions.uninstall]
|
||
|
|
description = "Uninstall the selected package"
|
||
|
|
command = "pip uninstall {}"
|
||
|
|
mode = "execute"
|