autostart texstudio and texmaker

This commit is contained in:
Dennis Frieberg 2022-06-19 15:22:08 +02:00
parent 36f1035956
commit 19be2c3635

View file

@ -52,6 +52,7 @@
let let
pkgs = nixpkgsFor.${system}; pkgs = nixpkgsFor.${system};
in ( rec { in ( rec {
# This sets the default devShell
default = kakoune; default = kakoune;
kakoune = kakoune =
let let
@ -107,10 +108,11 @@
pkgs.mkShellNoCC { pkgs.mkShellNoCC {
inputsFrom = [self.outputs.packages.${system}.default]; inputsFrom = [self.outputs.packages.${system}.default];
packages = [myKakoune texlab pkgs.git pkgs.zathura pkgs.fzf]; 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 = '' shellHook = ''
alias ..="cd .." alias ..="cd .."
mkdir -p ${latexTmpDir} mkdir -p ${latexTmpDir}
touch /tmp/texlabLog
export KAKOUNE_CONFIG_DIR="/dev/null/" export KAKOUNE_CONFIG_DIR="/dev/null/"
kak -d -s ${name} & kak -d -s ${name} &
alias vim="kak -c ${name}" alias vim="kak -c ${name}"
@ -120,12 +122,18 @@
pkgs.mkShellNoCC { pkgs.mkShellNoCC {
inputsFrom = [self.outputs.packages.${system}.default]; inputsFrom = [self.outputs.packages.${system}.default];
packages = [pkgs.texstudio pkgs.git]; packages = [pkgs.texstudio pkgs.git];
shellHook = ''
texstudio
'';
}; };
texmaker = texmaker =
pkgs.mkShellNoCC { pkgs.mkShellNoCC {
inputsFrom = [self.outputs.packages.${system}.default]; inputsFrom = [self.outputs.packages.${system}.default];
packages = [pkgs.texmaker pkgs.git]; packages = [pkgs.texmaker pkgs.git];
shellHook = ''
texmaker
'';
}; };
}) })
); );