From 6678fe0aaf6faf126fb76de0c9264abd6419d2e9 Mon Sep 17 00:00:00 2001
From: "Kenneth Benzie (Benie)" <benie@infektor.net>
Date: Fri, 12 Apr 2024 20:58:25 +0100
Subject: [PATCH] Assume layouts are executable not tmux scripts
---
layout/layout.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layout/layout.plugin.zsh b/layout/layout.plugin.zsh
index 72895d8..01d3f12 100644
--- a/layout/layout.plugin.zsh
+++ b/layout/layout.plugin.zsh
@@ -2,7 +2,7 @@ layout() {
if [[ "$1" == "" ]]; then
echo "usage: layout <layout> [name]"
else
- tmux source-file ~/.local/share/tmux/layouts/$1
+ ~/.local/share/tmux/layouts/$1
if [[ "$2" != "" ]]; then
tmux rename-window $2
fi