commit 9e26386c3b5719442ae844ed5601f2f3ffde5b12
parent 02c47652a5cd56491fb69fb7d91902a3871162e4
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sat, 25 Apr 2020 00:00:00 +0200
zsh: vim mode in vim split, otherwise emacs
Former-commit-id: fb868aa0b46120d985d9dda2da00c34d09cce0ee
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/shell/zshrc b/shell/zshrc
@@ -1,6 +1,10 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block, everything else may go below.
+if [ -n "$VIMRUNTIME" ]; then set -o vi
+else set -o emacs
+fi
+
[ -n "$DOTFILES" ] || { echo '$DOTFILES not set' && exit 1; }
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then