This commit is contained in:
caandt 2025-01-24 13:13:20 -06:00
parent 4bca412800
commit 50116c99af
4 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ in {
u.bin = with pkgs;
{
edit = [];
sh-tmux = [tmux];
auto-tmux = [tmux];
sm = [];
}
// lib.optionalAttrs config.u.has.graphical {

View file

@ -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

View file

@ -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