mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
aliasses improved and small fixes
This commit is contained in:
parent
4295aed17b
commit
506b6e46c2
2 changed files with 26 additions and 24 deletions
|
|
@ -12,21 +12,23 @@ plugins=(... poetry)
|
||||||
|
|
||||||
| Alias | Command | Description
|
| Alias | Command | Description
|
||||||
|:----- |--------------------------------------------------- |:--------------------------------------------------------------------------------------- |
|
|:----- |--------------------------------------------------- |:--------------------------------------------------------------------------------------- |
|
||||||
| pad | `poetry add` | Add packages to `pyproject.toml` and install them |
|
| pa | `poetry add` | Add packages to `pyproject.toml` and install them |
|
||||||
| pbld | `poetry build` | Build the source and wheels archives |
|
| pb | `poetry build` | Build the source and wheels archives |
|
||||||
| pch | `poetry check` | Validate the content of the `pyproject.toml` and its consistency with the `poetry.lock` |
|
| pc | `poetry check` | Validate the content of the `pyproject.toml` and its consistency with the `poetry.lock` |
|
||||||
| pcmd | `poetry list` | Display all the available Poetry commands |
|
| pu | `poetry update` | Get the latest versions of the dependencies and to update the `poetry.lock` |
|
||||||
|
| pi | `poetry install` | Read the `pyproject.toml`, resolve the dependencies, and install them |
|
||||||
|
| pl | `poetry lock` | Lock the dependencies in `pyproject.toml` without installing |
|
||||||
|
| pr | `poetry run` | Executes the given command inside the project’s virtualenv |
|
||||||
|
| pad | `poetry add -G dev` | Add packages to `pyproject.toml` as development dependency and install them |
|
||||||
|
| pli | `poetry list` | Display all the available Poetry commands |
|
||||||
| pconf | `poetry config --list` | Allow you to edit poetry config settings and repositories |
|
| pconf | `poetry config --list` | Allow you to edit poetry config settings and repositories |
|
||||||
| pexp | `poetry export --without-hashes > requirements.txt | Export the lock file to `requirements.txt` |
|
| pexp | `poetry export --without-hashes > requirements.txt`| Export the lock file to `requirements.txt` |
|
||||||
| pin | `poetry init` | Create a `pyproject.toml` interactively |
|
| pin | `poetry init` | Create a `pyproject.toml` interactively |
|
||||||
| pinst | `poetry install` | Read the `pyproject.toml`, resolve the dependencies, and install them |
|
|
||||||
| plck | `poetry lock` | Lock the dependencies in `pyproject.toml` without installing |
|
|
||||||
| pnew | `poetry new` | Create a directory structure suitable for most Python projects |
|
| pnew | `poetry new` | Create a directory structure suitable for most Python projects |
|
||||||
| ppath | `poetry env info --path` | Get the path of the currently activated virtualenv` |
|
| ppath | `poetry env info --path` | Get the path of the currently activated virtualenv` |
|
||||||
| pplug | `poetry self show plugins` | List all the installed Poetry plugins |
|
| pplug | `poetry self show plugins` | List all the installed Poetry plugins |
|
||||||
| ppub | `poetry publish` | Publish the builded (`poetry build` command) package to the remote repository |
|
| ppub | `poetry publish` | Publish the builded (`poetry build` command) package to the remote repository |
|
||||||
| prm | `poetry remove` | Remove packages from `pyproject.toml` and uninstall them |
|
| prm | `poetry remove` | Remove packages from `pyproject.toml` and uninstall them |
|
||||||
| prun | `poetry run` | Executes the given command inside the project’s virtualenv |
|
|
||||||
| psad | `poetry self add` | Add the Poetry plugin and install dependencies to make it work |
|
| psad | `poetry self add` | Add the Poetry plugin and install dependencies to make it work |
|
||||||
| psh | `poetry shell` | Spawns a shell within the virtual environment. If one doesn’t exist, it will be created |
|
| psh | `poetry shell` | Spawns a shell within the virtual environment. If one doesn’t exist, it will be created |
|
||||||
| pshw | `poetry show` | List all the available dependencies |
|
| pshw | `poetry show` | List all the available dependencies |
|
||||||
|
|
@ -34,7 +36,6 @@ plugins=(... poetry)
|
||||||
| psup | `poetry self update` | Update Poetry to the latest version (default) or to the specified version |
|
| psup | `poetry self update` | Update Poetry to the latest version (default) or to the specified version |
|
||||||
| psync | `poetry install --sync` | Synchronize your environment with the `poetry.lock` |
|
| psync | `poetry install --sync` | Synchronize your environment with the `poetry.lock` |
|
||||||
| ptree | `poetry show --tree` | List the dependencies as tree |
|
| ptree | `poetry show --tree` | List the dependencies as tree |
|
||||||
| pup | `poetry update` | Get the latest versions of the dependencies and to update the `poetry.lock` |
|
|
||||||
| pvinf | `poetry env info` | Get basic information about the currently activated virtualenv |
|
| pvinf | `poetry env info` | Get basic information about the currently activated virtualenv |
|
||||||
| pvoff | `poetry config virtualenvs.create false` | Disable automatic virtualenv creation |
|
| pvoff | `poetry config virtualenvs.create false` | Disable automatic virtualenv creation |
|
||||||
| pvrm | `poetry env remove` | Delete existing virtualenvs |
|
| pvrm | `poetry env remove` | Delete existing virtualenvs |
|
||||||
|
|
|
||||||
|
|
@ -1,36 +1,37 @@
|
||||||
alias pad='poetry add'
|
|
||||||
alias pbld='poetry build'
|
|
||||||
alias pch='poetry check'
|
|
||||||
alias pcmd='poetry list'
|
|
||||||
alias pconf='poetry config --list'
|
|
||||||
alias pexp='poetry export --without-hashes > requirements.txt'
|
|
||||||
alias pin='poetry init'
|
|
||||||
alias pinst='poetry install'
|
|
||||||
alias plck='poetry lock'
|
|
||||||
alias pnew='poetry new'
|
|
||||||
alias ppath='poetry env info --path'
|
|
||||||
alias pplug='poetry self show plugins'
|
|
||||||
alias ppub='poetry publish'
|
|
||||||
alias prm='poetry remove'
|
|
||||||
alias prun='poetry run'
|
|
||||||
alias psad='poetry self add'
|
|
||||||
alias psh='poetry shell'
|
|
||||||
alias pshw='poetry show'
|
|
||||||
alias pslt='poetry show --latest'
|
|
||||||
alias psup='poetry self update'
|
|
||||||
alias psync='poetry install --sync'
|
|
||||||
alias ptree='poetry show --tree'
|
|
||||||
alias pup='poetry update'
|
|
||||||
alias pvinf='poetry env info'
|
|
||||||
alias pvoff='poetry config virtualenvs.create false'
|
|
||||||
alias pvrm='poetry env remove'
|
|
||||||
alias pvu='poetry env use'
|
|
||||||
|
|
||||||
# Return immediately if poetry is not found
|
# Return immediately if poetry is not found
|
||||||
if (( ! $+commands[poetry] )); then
|
if (( ! $+commands[poetry] )); then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
alias pa='poetry add'
|
||||||
|
alias pb='poetry build'
|
||||||
|
alias pc='poetry check'
|
||||||
|
alias pi='poetry install'
|
||||||
|
alias pl='poetry lock'
|
||||||
|
alias pr='poetry run'
|
||||||
|
alias pu='poetry update'
|
||||||
|
alias pli='poetry list'
|
||||||
|
alias pad='poetry add -G dev'
|
||||||
|
alias pconf='poetry config --list'
|
||||||
|
alias pexp='poetry export --without-hashes > requirements.txt'
|
||||||
|
alias pin='poetry init'
|
||||||
|
alias pnew='poetry new'
|
||||||
|
alias pplug='poetry self show plugins'
|
||||||
|
alias ppub='poetry publish'
|
||||||
|
alias prm='poetry remove'
|
||||||
|
alias psh='poetry shell'
|
||||||
|
alias pshw='poetry show'
|
||||||
|
alias pslt='poetry show --latest'
|
||||||
|
alias psad='poetry self add'
|
||||||
|
alias psup='poetry self update'
|
||||||
|
alias psync='poetry install --sync'
|
||||||
|
alias ptree='poetry show --tree'
|
||||||
|
alias pvinf='poetry env info'
|
||||||
|
alias pvoff='poetry config virtualenvs.create false'
|
||||||
|
alias pvrm='poetry env remove'
|
||||||
|
alias pvu='poetry env use'
|
||||||
|
alias ppath='poetry env info --path'
|
||||||
|
|
||||||
# If the completion file doesn't exist yet, we need to autoload it and
|
# If the completion file doesn't exist yet, we need to autoload it and
|
||||||
# bind it to `poetry`. Otherwise, compinit will have already done that.
|
# bind it to `poetry`. Otherwise, compinit will have already done that.
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_poetry" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_poetry" ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue