shell: add alias for editing important files

This commit is contained in:
steveej 2016-10-12 11:31:35 +02:00
parent b0ce6753fa
commit 622a5384c1

View file

@ -3,13 +3,21 @@ let
pkgsSrc = nixpkgs.pkgs.fetchFromGitHub { pkgsSrc = nixpkgs.pkgs.fetchFromGitHub {
owner = "nixos"; owner = "nixos";
repo = "nixpkgs-channels"; repo = "nixpkgs-channels";
rev = "2b0eace6cf021eed7123fb828483a00c95796829"; # vimtex update rev = "adfcc2d9531e78bf6a9e3b56e2f4fc873cb3d87b";
sha256 = "187fmlkr4d1rbhrmcw8r3xnpxl22rvmisk1iswz3hj99j57ds5r6"; sha256 = "101mh6gb9wlx0lq5pw2m0n1fi3h2pag3ndg184rrqzvn9ynp28iw";
}; };
pkgs = import pkgsSrc {}; pkgs = import pkgsSrc {};
in pkgs.stdenv.mkDerivation { in pkgs.stdenv.mkDerivation {
name = "msc-thesis"; 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 = [ buildInputs = [
pkgs.xdotool pkgs.xdotool
(pkgs.vim_configurable.customize { (pkgs.vim_configurable.customize {