Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
cf07fe2c
Commit
cf07fe2c
authored
Nov 28, 2018
by
Frederick Zhang
Browse files
-r is not available for bsd sed
parent
1e161e83
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/cargo/_cargo
View file @
cf07fe2c
...
@@ -421,7 +421,7 @@ local -a commands;commands=(
...
@@ -421,7 +421,7 @@ local -a commands;commands=(
'verify-project:check Cargo.toml'
'verify-project:check Cargo.toml'
'version:show version information'
'version:show version information'
'yank:remove pushed file from index'
'yank:remove pushed file from index'
$( cargo --list | sed -n '1!p' | tr -s ' ' | cut -d ' ' -f 2 | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed
-r
"s/(.*)/echo \"\1:$\(cargo help \1 2>\&1 | head -n 1\)\"/" | sh )
$( cargo --list | sed -n '1!p' | tr -s ' ' | cut -d ' ' -f 2 | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed "s/
\
(.*
\
)/echo \"\1:$\(cargo help \1 2>\&1 | head -n 1\)\"/" | sh )
)
)
_describe 'command' commands
_describe 'command' commands
...
...
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