From e0ef9b14ba2fbefe3f167cf5eea799e7a3185bb6 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Sun, 1 Dec 2024 21:51:35 -0600 Subject: [PATCH 1/4] update zshrc --- home/modules/zsh/zshrc.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home/modules/zsh/zshrc.nix b/home/modules/zsh/zshrc.nix index f210031..97700ba 100644 --- a/home/modules/zsh/zshrc.nix +++ b/home/modules/zsh/zshrc.nix @@ -87,8 +87,8 @@ alias nixoide="nix repl ''" alias vps="ssh -A vps" bindkey -e - bindkey ";5D" backward-word - bindkey ";5C" forward-word + bindkey "^[[1;5D" backward-word + bindkey "^[[1;5C" forward-word bindkey "\e[3~" delete-char function use() { From e0614b99b417588aa3afd0b0884f43faf9e9e81a Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Sun, 1 Dec 2024 21:58:23 -0600 Subject: [PATCH 2/4] replace multicursor plugin --- home/modules/neovim.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/modules/neovim.nix b/home/modules/neovim.nix index 31b8c88..7bed139 100644 --- a/home/modules/neovim.nix +++ b/home/modules/neovim.nix @@ -41,7 +41,7 @@ in { plugins = with pkgs.vimPlugins; [ vim-nix - vim-multiple-cursors + vim-visual-multi ]; }; home.sessionVariables = { From 93946beae2bd0a8fa16574774794bb17c2c4a1cb Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Sun, 1 Dec 2024 21:58:38 -0600 Subject: [PATCH 3/4] add zsh auto suggestion --- home/modules/zsh/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/home/modules/zsh/default.nix b/home/modules/zsh/default.nix index 5e33633..e98e3d7 100644 --- a/home/modules/zsh/default.nix +++ b/home/modules/zsh/default.nix @@ -19,6 +19,7 @@ in { programs.zsh = { enable = true; syntaxHighlighting.enable = true; + autosuggestion.enable = true; initExtra = import ./zshrc.nix {inherit config lib pkgs;}; }; }; From a38110ee5557d78db3eb34e678c42a690f9b8178 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Mon, 2 Dec 2024 12:22:23 -0600 Subject: [PATCH 4/4] add history config to zshrc --- home/modules/zsh/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/home/modules/zsh/default.nix b/home/modules/zsh/default.nix index e98e3d7..7d4a20b 100644 --- a/home/modules/zsh/default.nix +++ b/home/modules/zsh/default.nix @@ -20,6 +20,14 @@ in { enable = true; syntaxHighlighting.enable = true; autosuggestion.enable = true; + + history = { + append = true; + expireDuplicatesFirst = true; + ignoreAllDups = true; + ignoreSpace = true; + }; + initExtra = import ./zshrc.nix {inherit config lib pkgs;}; }; };