Update 05.04.2026

This commit is contained in:
eof
2026-04-05 17:51:45 +05:00
parent fcc904df1e
commit b363a93ea5
680 changed files with 16892 additions and 16586 deletions

View File

@@ -20,9 +20,17 @@ the next time you autocomplete `pip install`.
## Aliases
| Alias | Description |
| :------- | :-------------------------------------------- |
| pipreq | Create requirements file |
| pipir | Install packages from `requirements.txt` file |
| pipupall | Update all installed packages |
| pipunall | Uninstall all installed packages |
| Alias | Command | Description |
| :--------|:----------------------------------------------------------------------------------|:--------------------------------------------- |
| pipi | `pip install` | Install packages |
| pipig | `pip install "git+https://github.com/user/repo.git"` | Install package from GitHub repository |
| pipigb | `pip install "git+https://github.com/user/repo.git@branch"` | Install package from GitHub branch |
| pipigp | `pip install "git+https://github.com/user/repo.git@refs/pull/PR_NUMBER/head"` | Install package from GitHub pull request |
| pipu | `pip install --upgrade` | Upgrade packages |
| pipun | `pip uninstall` | Uninstall packages |
| pipgi | `pip freeze \| grep` | Grep through installed packages |
| piplo | `pip list --outdated` | List outdated packages |
| pipreq | `pip freeze > requirements.txt` | Create requirements file |
| pipir | `pip install -r requirements.txt` | Install packages from `requirements.txt` file |
| pipupall | `pip list --outdated \| awk 'NR > 2 { print $1 }' \| xargs pip install --upgrade` | Update all installed packages |
| pipunall | `pip list --format freeze \| cut -d= -f1 \| xargs pip uninstall` | Uninstall all installed packages |

View File

@@ -88,24 +88,48 @@ else
alias pip="noglob pip"
fi
alias pipi="pip install"
alias pipu="pip install --upgrade"
alias pipun="pip uninstall"
alias pipgi="pip freeze | grep"
alias piplo="pip list -o"
# Create requirements file
alias pipreq="pip freeze > requirements.txt"
# Install packages from requirements file
alias pipir="pip install -r requirements.txt"
# Update all installed packages
# Upgrade all installed packages
function pipupall {
# non-GNU xargs does not support nor need `--no-run-if-empty`
local xargs="xargs --no-run-if-empty"
xargs --version 2>/dev/null | grep -q GNU || xargs="xargs"
pip list --outdated --format freeze | cut -d= -f1 | ${=xargs} pip install --upgrade
pip list --outdated | awk 'NR > 2 { print $1 }' | ${=xargs} pip install --upgrade
}
# Uninstalled all installed packages
# Uninstall all installed packages
function pipunall {
# non-GNU xargs does not support nor need `--no-run-if-empty`
local xargs="xargs --no-run-if-empty"
xargs --version 2>/dev/null | grep -q GNU || xargs="xargs"
pip list --format freeze | cut -d= -f1 | ${=xargs} pip uninstall
}
# Install from GitHub repository
function pipig {
pip install "git+https://github.com/$1.git"
}
compdef _pip pipig
# Install from GitHub branch
function pipigb {
pip install "git+https://github.com/$1.git@$2"
}
compdef _pip pipigb
# Install from GitHub pull request
function pipigp {
pip install "git+https://github.com/$1.git@refs/pull/$2/head"
}
compdef _pip pipigp