Skip to content

Commit

Permalink
Make the debug log a bit more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
zdykstra committed Mar 28, 2020
1 parent 210e615 commit 85eeb0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ If the default option is acceptable, you do not need to define it again in a con
* `on_connect (default[])`: When operating in single-window-mode, define an array of tmux commands to be sent to the cloned session to which you are attached. This option is only executed when `swm` is true.
* `persist (default 10s)`: Set the SSH `ControlPersist` option for control master connections.
* `prettyps (default 1)`: Control the process name on the command line, reducing it to `binaryname session@host`.
* `poe (default none)`: Enable purge-on-exit for `ephemeral` or `all` sessions. This will execute a `kill-session` against the session on exit.
* `reconnect (default 1)`: Attempt to reconnect to the remote host and re-open windows if SSH drops. This is useful for laptops that are suspended frequently.
* `selector (default: rofi -dmenu -i)`: Define the menu command, used for picking a session / session action.
* `skipnw (default 0)`: Do not launch a new terminal when a new window is created in tmux.
Expand Down
8 changes: 6 additions & 2 deletions tmuxc
Original file line number Diff line number Diff line change
Expand Up @@ -551,11 +551,11 @@ END {
or ( $config->{ephemeral} and $config->{poe} eq "ephemeral" ) )
{
my @cmd = buildCommand( $host, [ $config->{tmux_bin}, qw(kill-session -t), $config->{session}, ] );
Log( LOG_DEBUG, \@cmd );
Log( LOG_DEBUG, "Killing session $config->{session}" );
qx(@cmd);

@cmd = buildCommand( $host, [ $config->{tmux_bin}, qw(kill-session -t), $config->{control}, ] );
Log( LOG_DEBUG, \@cmd );
Log( LOG_DEBUG, "Killing control session $config->{control}" );
qx(@cmd);
}

Expand Down Expand Up @@ -1538,6 +1538,10 @@ Open up a menu listing sessions from the .tmuxc.conf file that aren't running.
Open up a menu listing control options. If one instance is running, the command is executed on that instance. If multiple are running, prompt the running sessions.
=item B<--poe|P>
Enable purge-on-exit for sessions of type 'none', 'ephemeral' or 'all'. This executes a I<kill-session> against the session on tmuxc exit.
=item B<--singlemenu|M>
Open up a menu listing control options. The options take the form of session@host % <action>, and are shown as a single-depth menu. Smart pagers (rofi, bemenu, etc) allow you to type partial words in any order to narrow down the option to execute.
Expand Down

0 comments on commit 85eeb0d

Please sign in to comment.