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
Oh My Zsh
Commits
32a78241
Commit
32a78241
authored
Mar 21, 2014
by
Alexei Danchenkov
Browse files
Added a forward-delete fallback to bind Delete key
Delete key (of Fn+Delete on Mac) would print "~" instead of deletion.
parent
c5413d7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/key-bindings.zsh
View file @
32a78241
...
...
@@ -53,6 +53,10 @@ fi
bindkey
'^?'
backward-delete-char
# [Backspace] - delete backward
if
[[
"
${
terminfo
[kdch1]
}
"
!=
""
]]
;
then
bindkey
"
${
terminfo
[kdch1]
}
"
delete-char
# [Delete] - delete forward
else
bindkey
"^[[3~"
delete-char
bindkey
"^[3;5~"
delete-char
bindkey
"
\e
[3~"
delete-char
fi
# Edit the current command line in $EDITOR
...
...
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