From 70ba732610d41c40f248e4eb96adebeaf99fe606 Mon Sep 17 00:00:00 2001 From: Orien Vandenbergh Date: Wed, 29 Jun 2016 16:28:34 -0600 Subject: [PATCH] =?UTF-8?q?Making=20an=20=C3=BCber=20vi-mode=20input=20typ?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zsh/zshrc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index e9aec43..74a12a6 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,5 +1,7 @@ # Path to your oh-my-zsh installation. export ZSH=/home/ovandenb/.zsh/oh-my-zsh +# Path to my omz custom directory +export ZSH_CUSTOM=$ZDOTDIR/custom # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ @@ -51,7 +53,11 @@ HISTFILE="$ZDOTDIR/.zsh_history" # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. #plugins=(sudo systemd themes tmux todo zsh_reload) -plugins=(ansible sudo systemd themes tmux todo vi-mode web-search zsh_reload) +plugins=(ansible sudo systemd themes todo vi-mode web-search zsh_reload) + +if type -p tmux >/dev/null; then + plugins += tmux +fi # User configuration ZSH_TMUX_AUTOSTART=false @@ -99,3 +105,9 @@ export LESS='-FRX' unsetopt share_history unsetopt hist_verify + +bindkey '^k' kill-line +bindkey '^u' kill-whole-line +bindkey '^y' yank +bindkey '^a' beginning-of-line +bindkey '^e' end-of-line