Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
c793baea
Commit
c793baea
authored
Dec 04, 2015
by
Sebastian Gniazdowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
znt: optimize heap usage for older Zsh's (e.g. 5.0.8)
parent
89205f90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
n-list
plugins/zsh-navigation-tools/n-list
+5
-1
n-panelize
plugins/zsh-navigation-tools/n-panelize
+9
-2
No files found.
plugins/zsh-navigation-tools/n-list
View file @
c793baea
...
...
@@ -224,7 +224,11 @@ zcurses timeout main -1
key
=
""
keypad
=
""
list
=(
"
$@
"
)
# This loop makes script faster on some Zsh's (e.g. 5.0.8)
repeat 1
;
do
list
=(
"
$@
"
)
done
last_element
=
"
$#list
"
while
((
1
))
;
do
...
...
plugins/zsh-navigation-tools/n-panelize
View file @
c793baea
...
...
@@ -32,7 +32,11 @@ if [ -t 0 ]; then
return
1
fi
list
=(
`
"
$@
"
`
)
# This loop makes script faster on some Zsh's (e.g. 5.0.8)
repeat 1
;
do
list
=(
`
"
$@
"
`
)
done
# TODO: $? doesn't reach user
[
"
$?
"
-eq
127
]
&&
return
$?
else
...
...
@@ -42,7 +46,10 @@ else
return
1
fi
list
=(
"
${
(@f)
"
$(
<&0
)
"
}
"
)
# This loop makes script faster on some Zsh's (e.g. 5.0.8)
repeat 1
;
do
list
=(
"
${
(@f)
"
$(
<&0
)
"
}
"
)
done
if
[[
!
-c
/dev/tty
]]
;
then
exec
<&2
...
...
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