Assume layouts are executable not tmux scripts

This commit is contained in:
Kenneth Benzie 2024-04-12 20:58:25 +01:00
parent 1ca9e4f6ae
commit 6678fe0aaf

View File

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