only start tmux if SSH_TTY is set
Some checks reported errors
Hydra devShells.x86_64-linux.default Hydra build #23851 of nixos-config:pr618:devShells.x86_64-linux.default
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23861 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.pc-installer Hydra build #23864 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23860 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.not522-installer Hydra build #23863 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.not522 Hydra build #23862 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23859 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Some checks reported errors
Hydra devShells.x86_64-linux.default Hydra build #23851 of nixos-config:pr618:devShells.x86_64-linux.default
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23861 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.pc-installer Hydra build #23864 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23860 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.not522-installer Hydra build #23863 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.not522 Hydra build #23862 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23859 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
This commit is contained in:
parent
ee88bcf28c
commit
3be3aa0cb2
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
|||
programs.fish.shellInit = ''
|
||||
if status is-interactive
|
||||
and not set -q TMUX
|
||||
and not set -q SSH_TTY
|
||||
tmux attach || tmux
|
||||
end
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue