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
df67f2ee
Commit
df67f2ee
authored
Feb 13, 2013
by
Frank Louwers
Browse files
[pj-plugin] avoid using basename. migth be (a lot?) faster
parent
9674a96b
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/pj/pj.plugin.zsh
View file @
df67f2ee
...
@@ -43,7 +43,7 @@ function _pj () {
...
@@ -43,7 +43,7 @@ function _pj () {
typeset
-a
projects
typeset
-a
projects
foreach i
(
$PROJECT_PATHS
/
*
)
foreach i
(
$PROJECT_PATHS
/
*
)
do
do
projects+
=
`
basename
$i
`
projects+
=
(
${
i
##*/
}
)
done
done
_arguments
'*:file:($projects)'
_arguments
'*:file:($projects)'
...
...
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