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