Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bind ^R to reverse history search

  • Loading branch information...
commit efe551f5977200b94288bb9c1f13a94a07311b20 1 parent a2d3827
Geoffrey Gallaway authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 zsh/zshrc.symlink
View
4 zsh/zshrc.symlink
@@ -6,6 +6,9 @@ zstyle ':completion:*' max-errors 2 numeric
autoload -Uz compinit
compinit
+bindkey -v
+bindkey '^R' history-incremental-search-backward
+
### COMMAND HISTORY ###
HISTFILE=~/.histfile
HISTSIZE=10000 # Number of in-memory lines of history
@@ -23,7 +26,6 @@ setopt path_dirs # Allow partial paths in command names (X11/bin/x
setopt hist_ignore_all_dups # Don't record duplicate commands
setopt hist_ignore_space # Don't record commands in the history that start with a space
-
autoload -U colors && colors
PS1="%(?..%{$fg_bold[red]%}[%?]%{$reset_color%} )[%{$fg_bold[cyan]%}%*%{$reset_color%}] %{$fg_bold[green]%}%n%{$reset_color%}@%{$fg_bold[yellow]%}%m%{$reset_color%}:%~%(!.#.$) "
#PS1='%* %n@%m:%~%(!.#.$) ' # 0 05/03 18:53 geoff.gallaway@localhost:~$
Please sign in to comment.
Something went wrong with that request. Please try again.