aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-05-08 15:49:47 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-05-08 15:49:47 +0200
commitb77cff948b519b4392a7bc03c4db9995a164b9ac (patch)
tree150fc2774f75ba49bace80db9353bc5fbbd5f487 /zsh
parent9b7b0a6e1095d0fd843434644a5299101959fe5a (diff)
downloaddotfiles-b77cff948b519b4392a7bc03c4db9995a164b9ac.tar.xz
zshrc: muchos history, no more git info, reverse history with glob
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc20
1 files changed, 4 insertions, 16 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index c46b2cc..2fae521 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -1,6 +1,6 @@
HISTFILE=~/.config/zsh/.zsh_history
-HISTSIZE=500
-SAVEHIST=500
+HISTSIZE=5000
+SAVEHIST=5000
setopt notify
fpath=(~/.local/share/zsh/completion $fpath)
@@ -39,28 +39,16 @@ fi
source /usr/share/doc/pkgfile/command-not-found.zsh
-#zstyle ':vcs_info:*' check-for-changes true
-
-zstyle ':vcs_info:git*' stagedstr "✚ "
-zstyle ':vcs_info:git*' unstagedstr "● "
-
-zstyle ':vcs_info:git*' formats "「%b %u%c%m」"
-
-zstyle ':vcs_info:*' enable git
-precmd() {
- vcs_info
-}
-
PS1=$'%{${fg[blue]}%}%B%~%b%{${fg[blue]}%} %B%#%b %{${fg[default]}%}'
#PS1=$'┌─[${fg[cyan]}%B%n%b ${fg[blue]}%B%~%b$fg[default]]\n└─╼ '
-RPS1='%{${fg[blue]}%}${vcs_info_msg_0_}%{${fg[default]}%}'
# Vi keybindings
bindkey -v
# Bind "<command mode> H" to run-help (man pages)
bindkey -M vicmd 'H' run-help
-bindkey "^R" history-incremental-search-backward
+bindkey "^R" history-incremental-pattern-search-backward
+bindkey -M isearch '^M' accept-search # Don't run commands when retrieving from history
autoload -U edit-command-line
zle -N edit-command-line