From 50116c99af540afef7ecb0c5f177a69dd5c44757 Mon Sep 17 00:00:00 2001 From: caandt Date: Fri, 24 Jan 2025 13:13:20 -0600 Subject: [PATCH] rename --- user/bin/{sh-tmux => auto-tmux} | 0 user/bin/default.nix | 2 +- user/config/bash/custom | 4 ++-- user/config/tmux/tmux.conf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename user/bin/{sh-tmux => auto-tmux} (100%) diff --git a/user/bin/sh-tmux b/user/bin/auto-tmux similarity index 100% rename from user/bin/sh-tmux rename to user/bin/auto-tmux diff --git a/user/bin/default.nix b/user/bin/default.nix index 22960bc..b248a1f 100644 --- a/user/bin/default.nix +++ b/user/bin/default.nix @@ -9,7 +9,7 @@ in { u.bin = with pkgs; { edit = []; - sh-tmux = [tmux]; + auto-tmux = [tmux]; sm = []; } // lib.optionalAttrs config.u.has.graphical { diff --git a/user/config/bash/custom b/user/config/bash/custom index 6efe8c8..c4847f1 100644 --- a/user/config/bash/custom +++ b/user/config/bash/custom @@ -6,9 +6,9 @@ local parent="$(ps -o command= -p "$PPID" | cut -f1 -d' ')" if [[ "$parent" == *alacritty ]]; then if [[ -z "$TMUX" && -z "$NOTMUX" ]]; then if [[ "$PWD" == "$HOME" ]]; then - exec sh-tmux + exec auto-tmux else - exec sh-tmux -n + exec auto-tmux -n fi fi # set shell level diff --git a/user/config/tmux/tmux.conf b/user/config/tmux/tmux.conf index fc4e8df..1c81852 100644 --- a/user/config/tmux/tmux.conf +++ b/user/config/tmux/tmux.conf @@ -61,7 +61,7 @@ bind m resize-pane -Z # detach (sends signal to parent process to exec shell) unbind d -bind d run 'sh-tmux -d' +bind d run 'auto-tmux -d' set -g update-environment SH_TMUX_PID bind C-u copy-mode \; send C-u