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
5303793e
Commit
5303793e
authored
Mar 24, 2014
by
Florian Franzen
Browse files
history-substring-search: bindkey now checks if terminfo is available first.
parent
c563fe95
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/history-substring-search/history-substring-search.zsh
View file @
5303793e
...
...
@@ -164,8 +164,12 @@ zle -N history-substring-search-up
zle
-N
history-substring-search-down
zmodload zsh/terminfo
bindkey
"
$terminfo
[kcuu1]"
history-substring-search-up
bindkey
"
$terminfo
[kcud1]"
history-substring-search-down
if
[[
-n
"
$terminfo
[kcuu1]"
]]
;
then
bindkey
"
$terminfo
[kcuu1]"
history-substring-search-up
fi
if
[[
-n
"
$terminfo
[kcud1]"
]]
;
then
bindkey
"
$terminfo
[kcud1]"
history-substring-search-down
fi
#-----------------------------------------------------------------------------
# implementation details
...
...
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