From 39f04621928050a8ca6afc6d27e5ab127412c011 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Sun, 13 Oct 2024 19:32:15 +0100 Subject: [PATCH] Remove force tmux session when launching a shell --- nix/home.nix | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/nix/home.nix b/nix/home.nix index 782a1fe9..165b73dd 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -533,7 +533,6 @@ in plugins = with pkgs; [ tmuxPlugins.cpu ]; prefix = "C-s"; terminal = "tmux-256color"; - shell = "${pkgs.zsh}/bin/zsh"; extraConfig = '' bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'" @@ -642,13 +641,6 @@ in set -o vi export EDITOR="nvim"; export PS1="\n[\[\e[37m\]\u\[\e[0m\]@\[\e[37;2m\]\h\[\e[0m\]] \[\e[1m\]\w \[\e[0;2m\]J:\[\e[0m\]\j\n\$ "; - - if [[ -z $TMUX ]]; then - tmux attach - if [[ $? == 1 ]]; then - tmux new -s main - fi - fi ''; }; @@ -680,13 +672,6 @@ in set -o vi export EDITOR="nvim"; - - if [[ -z $TMUX ]]; then - tmux attach - if [[ $? == 1 ]]; then - tmux new -s main - fi - fi ''; };