add TMUX_SESSION_NAME inheriting over ssh
This commit is contained in:
parent
391b47fa75
commit
bdaefa4d5c
6 changed files with 22 additions and 38 deletions
|
|
@ -34,7 +34,11 @@ inputs@{ machine, ... }:
|
|||
draw_minimal_borders = false;
|
||||
hide_window_decorations = true;
|
||||
|
||||
shell = "${pkgs.tmux}/bin/tmux";
|
||||
shell = "${pkgs.writeScriptBin "tmux-sesh" ''
|
||||
RAND=$(cat /dev/urandom | head -c 20 | base32)
|
||||
export TMUX_SESSION_NAME="kitty-$RAND"
|
||||
exec ${pkgs.tmux}/bin/tmux new -e TMUX_SESSION_NAME=$TMUX_SESSION_NAME -s "$TMUX_SESSION_NAME"
|
||||
''}/bin/tmux-sesh";
|
||||
clipboard_control = "write-clipboard write-primary read-clipboard read-primary";
|
||||
|
||||
foreground = "#fcfcfc";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue