Minor cleanup.
modified: .zsh_functions
deleted: .zshcomprc
modified: .zshrc
find $@ -type f -iregex ".*\.\(avi\|flv\|mkv\|mpeg\|mpg\|wmv\|wva\|mp4\|webm\|wva\|m4v\|ogm\|mp4\|mov\)" -exec mpv --shuffle $MPVOPTS \{\} +
}
find $@ -type f -iregex ".*\.\(avi\|flv\|mkv\|mpeg\|mpg\|wmv\|wva\|mp4\|webm\|wva\|m4v\|ogm\|mp4\|mov\)" -exec mpv --shuffle $MPVOPTS \{\} +
}
+function zle-line-init zle-keymap-select {
+ RPS1="%B${${KEYMAP/vicmd/c}/(main|viins)/}%b"
+ RPS2=$RPS1
+ zle reset-prompt
+}
+++ /dev/null
-# The following lines were added by compinstall
-zstyle :compinstall filename '/home/henk/.zshcomprc'
-
-autoload -Uz compinit
-compinit
-# End of lines added by compinstall
+autoload -U edit-command-line
. ~/.zsh_comprc
. ~/.zsh_functions
. ~/.zsh_aliases
. ~/.zsh_local
. ~/.zsh_comprc
. ~/.zsh_functions
. ~/.zsh_aliases
. ~/.zsh_local
+zle -N zle-line-init
+zle -N zle-keymap-select
+zle -N edit-command-line
+
HISTFILE=~/.zsh_history
HISTSIZE=5000
SAVEHIST=3000
HISTFILE=~/.zsh_history
HISTSIZE=5000
SAVEHIST=3000
setopt NO_BG_NICE
setopt LONG_LIST_JOBS
setopt NO_BG_NICE
setopt LONG_LIST_JOBS
+bindkey -v
+
+# Use vim cli mode
+bindkey '^P' up-history
+bindkey '^N' down-history
+
+# backspace and ^h working even after
+# returning from command mode
+bindkey '^?' backward-delete-char
+bindkey '^h' backward-delete-char
+
+# ctrl-w removed word backwards
+bindkey '^w' backward-kill-word
-#read -q "REPLY?Exec to fish? " && exec fish -i
+# ctrl-r starts searching history backward
+bindkey '^r' history-incremental-search-backward
+# v in command mode starts editor for current line
+bindkey -M vicmd v edit-command-line