TransWikia.com

How to comment in a windows.tmux file

Unix & Linux Asked on November 6, 2021

My ~/.byobu/windows.tmux file is getting a bit complex and I would like to document it with comments.

How to insert comments in Byobu’s windows.tmux file?

Using # as seen below results in a unknown command: # error message.

# Start monitors for each customer
new-session -n va /home/me/bin/monitor-1.sh;
new-window -n vk /home/me/bin/monitor-2.sh;
new-window -n vd /home/me/bin/monitor-3.sh;
new-window -n su bash ;

Versions:

$ byobu --version
byobu version 5.92
tmux 1.9

2 Answers

You should be able to comment lines with a # character. It may be that this character has to start a line and entries like set ... # setting a new value are not allowed.

Answered by klimpergeist on November 6, 2021

As per the manual page

Users can create a list of windows to launch at startup in $BYOBU_CONFIG_DIR/windows and $BYOBU_CONFIG_DIR/windows.tmux. This file is the same syntax as ~/.screenrc and ~/.tmuxrc, each line specifying a window, as described in screen(1) or tmux(1)

The standard comment character in a tmux configuration file is #. Anything after a # is ignored.

# Set the default keybindings
set -g prefix C-a
unbind-key C-b
bind C-a send-prefix
...

Answered by mjturner on November 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP