From 19be2c363586433d770f306225399fa48bdbc0a8 Mon Sep 17 00:00:00 2001 From: Dennis Frieberg Date: Sun, 19 Jun 2022 15:22:08 +0200 Subject: [PATCH] autostart texstudio and texmaker --- flake.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a12cb0e..72df471 100644 --- a/flake.nix +++ b/flake.nix @@ -52,6 +52,7 @@ let pkgs = nixpkgsFor.${system}; in ( rec { + # This sets the default devShell default = kakoune; kakoune = let @@ -107,10 +108,11 @@ pkgs.mkShellNoCC { inputsFrom = [self.outputs.packages.${system}.default]; packages = [myKakoune texlab pkgs.git pkgs.zathura pkgs.fzf]; + # TODO only try to start the kakoune session if no session with that + # name exists shellHook = '' alias ..="cd .." mkdir -p ${latexTmpDir} - touch /tmp/texlabLog export KAKOUNE_CONFIG_DIR="/dev/null/" kak -d -s ${name} & alias vim="kak -c ${name}" @@ -120,12 +122,18 @@ pkgs.mkShellNoCC { inputsFrom = [self.outputs.packages.${system}.default]; packages = [pkgs.texstudio pkgs.git]; + shellHook = '' + texstudio + ''; }; texmaker = pkgs.mkShellNoCC { inputsFrom = [self.outputs.packages.${system}.default]; packages = [pkgs.texmaker pkgs.git]; + shellHook = '' + texmaker + ''; }; }) );