From 2c50bc303bbb081b6bf820165a95c4d0ba750cc1 Mon Sep 17 00:00:00 2001 From: ignuki Date: Mon, 31 Mar 2025 20:37:32 +0200 Subject: [PATCH] add tmux-continuum config --- README.md | 1 + tmux/.tmux.conf | 14 +++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 26b913f..1a4f1be 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ - starship - tmux - tmux-plugin-manager +- reattach-to-user-namespace (MacOS) - python3-libtmux - neovim - lua-language-server diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 3d7e987..b736f0e 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -87,8 +87,8 @@ set -g @resurrect-capture-pane-contents 'on' set -g @resurrect-dir '~/.tmux/resurrect/' set -g @continuum-save-interval '15' -# set -g @continuum-restore 'on' -# set -g @continuum-boot 'on' +set -g @continuum-restore 'on' +set -g @continuum-boot 'on' set -g @dracula-continuum-mode countdown ### tmux-resurrect @@ -97,7 +97,15 @@ set -g @resurrect-restore 'R' # prefix + Shift-r - restore # for neovim set -g @resurrect-strategy-nvim 'session' -set -g @continuum-boot-options 'alacritty,fullscreen' +# Platform-specific settings +if-shell "uname | grep -q Darwin" { + # macOS specific settings + set -g @continuum-boot-options 'alacritty,fullscreen' + set -g default-command "reattach-to-user-namespace -l $SHELL" +} { + # Linux specific settings + set -g @continuum-boot-options 'alacritty,fullscreen' +} ############################################################################### ###############################################################################