From 71b553a9aa94fb9b092a66c06852b771cac8ee9b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Feb 2026 21:57:33 +0100 Subject: [PATCH] Only source the file if tmux is running --- bin/omarchy-refresh-tmux | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-refresh-tmux b/bin/omarchy-refresh-tmux index c0f675fb..64c7f9f2 100755 --- a/bin/omarchy-refresh-tmux +++ b/bin/omarchy-refresh-tmux @@ -3,4 +3,7 @@ # Overwrite the user tmux config with the Omarchy default and reload tmux. omarchy-refresh-config tmux/tmux.conf -tmux source-file ~/.config/tmux/tmux.conf + +if pgrep -x tmux; then + tmux source-file ~/.config/tmux/tmux.conf +fi