From b0d9dfe1ba310671c997f893c8367b95b18bc299 Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Mon, 10 Jan 2022 18:07:44 +0000 Subject: [PATCH] Fix ctrl-w in file paths --- home.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/home.nix b/home.nix index c7a415d..b353a60 100644 --- a/home.nix +++ b/home.nix @@ -3,7 +3,10 @@ let mypkgs = (import ./modules/pkgs.nix { inherit pkgs; }); in { home.packages = mypkgs.all; - home.sessionVariables = { "EDITOR" = "nvim"; }; + home.sessionVariables = { + "EDITOR" = "nvim"; + "WORDCHARS" = "\${WORDCHARS/\\/}"; # ctrl-w on paths without make angery + }; programs = { home-manager.enable = true; @@ -38,9 +41,7 @@ in { "$username$hostname$shlvl$directory$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch$docker_context$golang$kotlin$nodejs$python$rust$terraform$nix_shell$memory_usage$aws$gcloud$openstack$azure$env_var$crystal$custom$sudo$cmd_duration$line_break$jobs$status$shell$character"; username.format = "[$user]($style) "; hostname.format = "[$hostname]($style) "; - directory = { - truncation_length = -1; - }; + directory = { truncation_length = -1; }; git_branch.format = "[$symbol$branch]($style) "; python.format = "[py \${pyenv_prefix}(\${version} )(\\($virtualenv\\) )]($style)"; nodejs.format = "[js ($version )]($style)";