Commit cea82d3ec36c

Vincent Demeester <vincent@sbr.pm>
2020-04-28 02:06:42
zsh: add zsh-nix-shell
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1283b3a
Changed files (1)
modules
profiles
modules/profiles/zsh.nix
@@ -78,7 +78,6 @@ in
                 sha256 = "04skzxv8j06f1snsx62qnca5f2183w0wfs5kz78rs8hkcyd6g89w";
               };
             }
-            # romkatv/powerlevel10k
             {
               name = "powerlevel10k";
               src = pkgs.fetchFromGitHub {
@@ -88,6 +87,15 @@ in
                 sha256 = "011ja4r3a8vbcs42js9nri4p8pi8z4ccqxl2qyf52pn3pfnidigj";
               };
             }
+            {
+              name = "zsh-nix-shell";
+              src = pkgs.fetchFromGitHub {
+                owner = "chisui";
+                repo = "zsh-nix-shell";
+                rev = "v0.1.0";
+                sha256 = "0snhch9hfy83d4amkyxx33izvkhbwmindy0zjjk28hih1a9l2jmx";
+              };
+            }
           ];
           envExtra = ''
             export GOPATH=${config.home.homeDirectory}
@@ -125,6 +133,7 @@ in
             fi
             # make sure navigation using emacs keybindings works on all non-alphanumerics
             # syntax highlighting
+            source $HOME/${config.programs.zsh.dotDir}/plugins/zsh-nix-shell/nix-shell.plugin.zsh
             source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
             ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
             ZSH_HIGHLIGHT_PATTERNS+=('rm -fR *' 'fg=white,bold,bg=red')