autostart texstudio and texmaker
This commit is contained in:
parent
36f1035956
commit
19be2c3635
1 changed files with 9 additions and 1 deletions
10
flake.nix
10
flake.nix
|
@ -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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue