ca01730f81
Sorin's OMZ rewrite is a bit nicer, as it's written in more native style ZSH, doesn't do auto updates, and incorporates many bugfixes, and is more actively maintained than Robby's branch. For now, YADR supports both, so if you want to try out the sorin branch, go to sorin-ionescu/oh-my-zsh, install it, and rerun the YADR installer so that the skwp theme is installed for you. If you want to have them side by side for comparison, rename the old robby one to ~/.oh-my-zsh.robby or similar, so you can toggle back and forth through renames, or symlinks.
34 lines
2.2 KiB
Bash
34 lines
2.2 KiB
Bash
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html
|
|
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Zle-Builtins
|
|
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Standard-Widgets
|
|
|
|
bindkey -v # Use vi key bindings
|
|
|
|
bindkey '\ew' kill-region # [Esc-w] - Kill from the cursor to the mark
|
|
bindkey -s '\el' 'ls\n' # [Esc-l] - run command: ls
|
|
bindkey -s '\e.' '..\n' # [Esc-.] - run command: .. (up directory)
|
|
bindkey '^r' history-incremental-search-backward # [Ctrl-r] - Search backward incrementally for a specified string. The string may begin with ^ to anchor the search to the beginning of the line.
|
|
bindkey '^[[5~' up-line-or-history # [PageUp] - Up a line of history
|
|
bindkey '^[[6~' down-line-or-history # [PageDown] - Down a line of history
|
|
|
|
bindkey '^[[A' up-line-or-search # start typing + [Up-Arrow] - fuzzy find history forward
|
|
bindkey '^[[B' down-line-or-search # start typing + [Down-Arrow] - fuzzy find history backward
|
|
|
|
bindkey '^[[H' beginning-of-line # [Home] - Go to beginning of line
|
|
bindkey '^[[1~' beginning-of-line # [Home] - Go to beginning of line
|
|
bindkey '^[OH' beginning-of-line # [Home] - Go to beginning of line
|
|
bindkey '^[[F' end-of-line # [End] - Go to end of line
|
|
bindkey '^[[4~' end-of-line # [End] - Go to end of line
|
|
bindkey '^[OF' end-of-line # [End] - Go to end of line
|
|
|
|
bindkey ' ' magic-space # [Space] - do history expansion
|
|
|
|
bindkey '^[[1;5C' forward-word # [Ctrl-RightArrow] - move forward one word
|
|
bindkey '^[[1;5D' backward-word # [Ctrl-LeftArrow] - move backward one word
|
|
|
|
# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
|
|
bindkey '^?' backward-delete-char # [Delete] - delete backward
|
|
bindkey '^[[3~' delete-char # [fn-Delete] - delete forward
|
|
bindkey '^[3;5~' delete-char
|
|
bindkey '\e[3~' delete-char
|