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
0066280c
Unverified
Commit
0066280c
authored
Oct 22, 2022
by
pomatory
Committed by
GitHub
Oct 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(pip): fix `pipupall` error with `freeze` format (#11280)
parent
a7d910c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pip.plugin.zsh
plugins/pip/pip.plugin.zsh
+2
-2
No files found.
plugins/pip/pip.plugin.zsh
View file @
0066280c
...
...
@@ -94,12 +94,12 @@ alias pipreq="pip freeze > requirements.txt"
# Install packages from requirements file
alias
pipir
=
"pip install -r requirements.txt"
# Up
dat
e all installed packages
# Up
grad
e 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
...
...
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