From 9cf1a0e548c92cc6bcbd3f100a82a44d9889397d Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 5 Apr 2024 18:38:04 +0200 Subject: zsh vi mode enable per default and display the cursor accordingly --- nix/hosts/caladan/home_emile.nix | 2 ++ nix/hosts/caladan/session_variables.zsh | 1 + 2 files changed, 3 insertions(+) (limited to 'nix/hosts') diff --git a/nix/hosts/caladan/home_emile.nix b/nix/hosts/caladan/home_emile.nix index ea4849b..ae25a07 100644 --- a/nix/hosts/caladan/home_emile.nix +++ b/nix/hosts/caladan/home_emile.nix @@ -32,6 +32,8 @@ plugins = [ "git" "vi-mode" "web-search" "urltools" ]; }; + defaultKeymap = "viins"; + # this has to be added, so we can ssh into the host using deploy-rs and # access the `nix-store` stuff envExtra = '' diff --git a/nix/hosts/caladan/session_variables.zsh b/nix/hosts/caladan/session_variables.zsh index b056a86..d2f5d7c 100644 --- a/nix/hosts/caladan/session_variables.zsh +++ b/nix/hosts/caladan/session_variables.zsh @@ -10,6 +10,7 @@ export RPROMPT="%F{green}%/%F{reset} %D{%K:%M:%S}" # in the rprompt TMOUT=1 TRAPALRM() { zle reset-prompt } +export VI_MODE_SET_CURSOR=true export PROMPT_EOL_MARK="%" # hide EOL sign ('%') -- cgit 1.4.1