Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
1448d234
Unverified
Commit
1448d234
authored
Nov 11, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(dirhistory): fix Up/Down key bindings for Terminal.app
Reference:
https://github.com/ohmyzsh/ohmyzsh/commit/7f49494#commitcomment-60117011
parent
22de1d30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dirhistory.plugin.zsh
plugins/dirhistory/dirhistory.plugin.zsh
+2
-2
No files found.
plugins/dirhistory/dirhistory.plugin.zsh
View file @
1448d234
...
...
@@ -182,7 +182,7 @@ bindkey "\e\e[A" dirhistory_zle_dirhistory_up # Putty
bindkey
"
\e
O3A"
dirhistory_zle_dirhistory_up
# GNU screen
case
"
$TERM_PROGRAM
"
in
iTerm.app
)
bindkey
"^[^[[A"
dirhistory_zle_dirhistory_up
;;
# iTerm2
Apple_Terminal
)
bindkey
"^[
O
A"
dirhistory_zle_dirhistory_up
;;
# Terminal.app
Apple_Terminal
)
bindkey
"^[
[
A"
dirhistory_zle_dirhistory_up
;;
# Terminal.app
esac
if
((
${
+terminfo[kcuu1]
}
))
;
then
bindkey
"^[
${
terminfo
[kcuu1]
}
"
dirhistory_zle_dirhistory_up
# urxvt
...
...
@@ -195,7 +195,7 @@ bindkey "\e\e[B" dirhistory_zle_dirhistory_down # Putty
bindkey
"
\e
O3B"
dirhistory_zle_dirhistory_down
# GNU screen
case
"
$TERM_PROGRAM
"
in
iTerm.app
)
bindkey
"^[^[[B"
dirhistory_zle_dirhistory_down
;;
# iTerm2
Apple_Terminal
)
bindkey
"^[
O
B"
dirhistory_zle_dirhistory_down
;;
# Terminal.app
Apple_Terminal
)
bindkey
"^[
[
B"
dirhistory_zle_dirhistory_down
;;
# Terminal.app
esac
if
((
${
+terminfo[kcud1]
}
))
;
then
bindkey
"^[
${
terminfo
[kcud1]
}
"
dirhistory_zle_dirhistory_down
# urxvt
...
...
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