From f75a9f1ccb3f4cdedba8b153020458bd40b7633d Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Fri, 1 May 2026 19:48:25 +0000 Subject: [PATCH] Finish migrating to tmux fix environment variable being reset to most recent value in new panels --- legacy/.screenrc | 34 ---------------------------------- modules/home/common.nix | 1 + 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 legacy/.screenrc diff --git a/legacy/.screenrc b/legacy/.screenrc deleted file mode 100644 index 5e4423c..0000000 --- a/legacy/.screenrc +++ /dev/null @@ -1,34 +0,0 @@ -# http://aperiodic.net/screen/commands:start - -# see accompanying file ~/.ssh/rc -setenv SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock - -# no screen blinking on bell -vbell off -startup_message off -# disable "New screen..." message -msgwait 0 -defscrollback 10240 -# hostname, timestamp, LA in status bar -caption always "%{+b}%H | %c %d.%m.%Y | Load: %l" -# colored window list -hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" -# Launch login shells -shell -${SHELL} -# 256color support -#termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' -term screen-256color -#defbce "on" -# beep on activity monitor alert (C-a M) -# ex.: 12:37 activity -> 7$ zsh -activity "%c activity -> %n%f %t^G" - -# Alt Left/Right = switch windows -bindkey "^[[1;3D" prev -bindkey "^[[1;3C" next -bindkey "^[b" prev -bindkey "^[f" next -# Alt N = new window -bindkey "^[n" screen - -shelltitle '% |zsh' diff --git a/modules/home/common.nix b/modules/home/common.nix index c932dd1..2f01bbd 100644 --- a/modules/home/common.nix +++ b/modules/home/common.nix @@ -95,6 +95,7 @@ extraConfig = '' set-environment -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock + set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION" # Instead of flashing or beeping, blink the window in status. set -g visual-bell off