Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
960483b7
Unverified
Commit
960483b7
authored
Jun 13, 2021
by
Sagar Yadav
Committed by
GitHub
Jun 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(pip): add alias for updating all requirements via pip (#9965)
* feat(plugins): add alias for pip commands * feat(plugins): updated README.md and add alias
parent
adcb5c5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
README.md
plugins/pip/README.md
+9
-0
pip.plugin.zsh
plugins/pip/pip.plugin.zsh
+11
-0
No files found.
plugins/pip/README.md
View file @
960483b7
...
...
@@ -17,3 +17,12 @@ or you can run `zsh-pip-cache-packages` directly.
To reset the cache, run
`zsh-pip-clear-cache`
and it will be rebuilt next
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 |
plugins/pip/pip.plugin.zsh
View file @
960483b7
...
...
@@ -84,3 +84,14 @@ zsh-pip-test-clean-packages() {
alias
pip
=
"noglob pip"
# allows square brackets for pip command invocation
# Create requirements file
alias
pipreq
=
"pip freeze > requirements.txt"
# Update all installed packages
alias
pipupall
=
"pipreq && sed -i 's/==/>=/g' requirements.txt && pip install -r requirements.txt --upgrade && rm -rf requirements.txt"
# Install packages from requirements file
alias
pipir
=
"pip install -r requirements.txt"
# Uninstalled all installed packages
alias
pipunall
=
"pipreq && pip uninstall -r requirements.txt -y && rm -rf requirements.txt"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment