diff options
author | Emile <git@emile.space> | 2024-04-05 18:38:04 +0200 |
---|---|---|
committer | Emile <git@emile.space> | 2024-04-05 18:38:04 +0200 |
commit | 9cf1a0e548c92cc6bcbd3f100a82a44d9889397d (patch) | |
tree | b9e19775b73c141af72e2ada442def1074203f42 /nix/hosts | |
parent | cb20d078360ec9235b9b3a78d7950ded1f601267 (diff) |
zsh vi mode
enable per default and display the cursor accordingly
Diffstat (limited to 'nix/hosts')
-rw-r--r-- | nix/hosts/caladan/home_emile.nix | 2 | ||||
-rw-r--r-- | nix/hosts/caladan/session_variables.zsh | 1 |
2 files changed, 3 insertions, 0 deletions
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 ('%') |