mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
refactor: move zellij to shared module
This commit is contained in:
parent
362b9dda0f
commit
5b9d021b59
3 changed files with 39 additions and 18 deletions
|
|
@ -41,7 +41,6 @@
|
|||
vesktop
|
||||
gh
|
||||
nixfmt-rfc-style
|
||||
zellij
|
||||
tidal-hifi
|
||||
hyperfine
|
||||
|
||||
|
|
@ -135,23 +134,6 @@
|
|||
|
||||
zsh = {
|
||||
shellAliases.cd = "z";
|
||||
interactiveShellInit =
|
||||
let
|
||||
monitorScript = pkgs.replaceVarsWith {
|
||||
src = ./monitor.ps;
|
||||
replacements = builtins.mapAttrs (_: lib.getExe) {
|
||||
inherit (pkgs) perl xdotool;
|
||||
};
|
||||
isExecutable = true;
|
||||
};
|
||||
in
|
||||
''
|
||||
if [[ -z "$ZELLIJ" ]]; then
|
||||
MONITOR="$(${monitorScript} || true)"
|
||||
zellij attach -c "''${MONITOR:+"$MONITOR@"}$USER"
|
||||
exit
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
nix-index = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue