A tmux plugin that automatically splits your current window into panes and tails all .log files in the current directory.
- Automatically detects all
.logfiles in the current working directory - Smart layout calculation - arranges panes in an optimal grid
- One-key activation - press
prefix + mto tail all logs - Works with any number of log files
- Compatible with bash 3.2+ (macOS default)
-
Install Tmux Plugin Manager if you haven't already
-
Add this plugin to your
.tmux.conf:set -g @plugin 'Crucifixion-Fxl/tmux-multitail-plugin'
-
Press
prefix + Ito install the plugin
-
Clone or download this repository to your tmux plugins directory:
git clone https://github.com/Crucifixion-Fxl/tmux-multitail-plugin.git ~/.tmux/plugins/tmux-multitail-plugin -
Add this line to your
.tmux.conf:run-shell "#{plugin_root}/tmux-multitail-plugin/plugin.tmux" -
Reload tmux configuration:
tmux source-file ~/.tmux.conf
- Navigate to a directory containing
.logfiles - Press
prefix + m - The plugin will:
- Scan the current directory for
*.logfiles - Split the current window into the appropriate number of panes
- Start
tail -Fon each log file in its own pane
- Scan the current directory for
app.log
Press prefix + m → tails app.log in current pane
error.log
access.log
debug.log
Press prefix + m → splits into 3 panes, each tailing a different log
The plugin uses a smart layout algorithm:
- 1 file: stays in current pane
- 2 files: 2 columns
- 3-4 files: 2x2 grid
- 5-6 files: 3x2 or 2x3 grid
- 7-9 files: 3x3 grid
- And so on...
- tmux 1.9 or higher
- bash 3.2+ (works on macOS default bash)
MIT
