Skip to content

Tmux plugin to open the last non-empty command output in a pager.

License

Notifications You must be signed in to change notification settings

dlvhdr/tmux-last

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tmux-last

Tmux plugin to open the last non-empty command output in a pager.

Installation

set -g @plugin 'mskelton/tmux-last'

Configuration

@tmux-last-prompt-pattern

A regex pattern to identify command separator. Required.

set -g @tmux-last-prompt-pattern '> '

@tmux-last-command-key

Set's the key that should be bound to open the last command output. Defaults to t.

set -g @tmux-last-command-key t

@tmux-last-prompt-lines

The number of lines consumed by the prompt. If your prompt takes up two lines, you could set this to 2. Defaults to 1.

set -g @tmux-last-prompt-lines 1

@tmux-last-pager

The pager to use for the captured output. Defaults to $PAGER.

set -g @tmux-last-pager less

About

Tmux plugin to open the last non-empty command output in a pager.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Shell 100.0%