aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2021-07-04 03:40:47 -0400
committertdro <tdro@users.noreply.github.com>2021-07-04 03:40:47 -0400
commitc264c3edf8a425e83c2ba9fa7dde287ae0498303 (patch)
treee2234574d59883b6241fc34d5c0b6b1777a66574 /.vim
parent12f67660558923a5462b13ebc3a067d035b8a4d9 (diff)
downloaddotfiles-c264c3edf8a425e83c2ba9fa7dde287ae0498303.tar.gz
dotfiles-c264c3edf8a425e83c2ba9fa7dde287ae0498303.tar.bz2
dotfiles-c264c3edf8a425e83c2ba9fa7dde287ae0498303.zip
.vimrc: Add vim nix-shell snippet
Diffstat (limited to '.vim')
-rw-r--r--.vim/snippets/shell.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/.vim/snippets/shell.nix b/.vim/snippets/shell.nix
new file mode 100644
index 0000000..6647b8c
--- /dev/null
+++ b/.vim/snippets/shell.nix
@@ -0,0 +1,16 @@
+let
+
+ name = "";
+
+ pkgs = import <nixpkgs> { };
+
+in pkgs.mkShell {
+
+ inherit name;
+
+ buildInputs = [ ];
+
+ shellHook = ''
+ export PS1='\h (${name}) \W \$ '
+ '';
+}