recentpopularlog in

kme : zsh   33

Zsh Vi Mode
Emacs mode is the default. Gross. Let's change it to Vi.

The recommended .zshrc additions
bindkey -v

bindkey '^P' up-history
bindkey '^N' down-history
bindkey '^?' backward-delete-char
bindkey '^h' backward-delete-char
bindkey '^w' backward-kill-word
bindkey '^r' history-incremental-search-backward

function zle-line-init zle-keymap-select {
VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}"
RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/}$(git_custom_status) $EPS1"
zle reset-prompt

zle -N zle-line-init
zle -N zle-keymap-select
cli  shell  zsh  tipsandtricks  keybinding  vim  vi  solution  movein  essential  configfile 
january 2014 by kme
Zsh - ArchWiki
Configuring $PATH

Information about setting up the system path per user in zsh can be found here:

In short, put the following in ~/.zshenv:


typeset -U path
path=(~/bin /other/things/in/path $path)
dotfile  configfile  shell  zsh  solution 
january 2014 by kme
tarruda/zsh-fuzzy-match · GitHub
ZLE widget for interactively finding stuff, inspired by VIM CtrlP/Command-T plugins
zsh  zlewidget  autocomplete  fuzzyfind  shell  commandline  cli 
january 2014 by kme
zsh completion · Issue #178 · joelthelion/autojump · GitHub
The installation README now actually tells you to do this, I believe (update 2014-01-02):
autoload -U compinit && compinit
zsh  conffile  configfile  rcfile  shell  solution  autocomplete 
february 2013 by kme

Copy this bookmark:

to read