From 622a5384c1d8de72cc72a0b8fdb8ce8d28133e28 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Wed, 12 Oct 2016 11:31:35 +0200 Subject: [PATCH] shell: add alias for editing important files --- shell.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/shell.nix b/shell.nix index 6c59037..ae15d3f 100644 --- a/shell.nix +++ b/shell.nix @@ -3,13 +3,21 @@ let pkgsSrc = nixpkgs.pkgs.fetchFromGitHub { owner = "nixos"; repo = "nixpkgs-channels"; - rev = "2b0eace6cf021eed7123fb828483a00c95796829"; # vimtex update - sha256 = "187fmlkr4d1rbhrmcw8r3xnpxl22rvmisk1iswz3hj99j57ds5r6"; + rev = "adfcc2d9531e78bf6a9e3b56e2f4fc873cb3d87b"; + sha256 = "101mh6gb9wlx0lq5pw2m0n1fi3h2pag3ndg184rrqzvn9ynp28iw"; }; pkgs = import pkgsSrc {}; in pkgs.stdenv.mkDerivation { name = "msc-thesis"; + shellHook = '' + alias vim-thesis="vim -p --servername VIM -- \ + $PWD/src/docs/thesis.tex \ + $PWD/src/docs/glossary.tex \ + $PWD/src/docs/parts/context/context.tex \ + $PWD/src/docs/parts/research/research.tex \ + " + ''; buildInputs = [ pkgs.xdotool (pkgs.vim_configurable.customize {