tmux: Add plugin to capture last command output

This commit is contained in:
Sanchayan Maity 2022-03-23 19:51:35 +05:30
parent 2ed668e2c1
commit 8cc874b830
3 changed files with 10 additions and 0 deletions

3
.gitmodules vendored
View File

@ -16,3 +16,6 @@
[submodule "tmux/.tmux/plugins/tmux-fuzzback"]
path = tmux/.tmux/plugins/tmux-fuzzback
url = https://github.com/roosta/tmux-fuzzback.git
[submodule "tmux/.tmux/plugins/tmux-cmd-capture"]
path = tmux/.tmux/plugins/tmux-cmd-capture
url = https://github.com/artemave/tmux_capture_last_command_output.git

View File

@ -89,6 +89,11 @@ bind S command-prompt -p 'Save history to filename:' -I '/tmp/tmux.history' 'cap
# Session selector
bind T display-popup -E "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t"
# Last command output
set -g @command-capture-key t
set -g @command-capture-prompt-pattern '] % '
set -g @command-capture-editor-cmd 'nvim -R'
# This effects color rendering and typing on terminal.
set-option -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ",foot:Tc"
@ -136,3 +141,4 @@ run-shell '~/.tmux/plugins/tmux-copycat/copycat.tmux'
run-shell '~/.tmux/plugins/tmux-open/open.tmux'
run-shell '~/.tmux/plugins/tmux-butler/tmux-butler.tmux'
run-shell '~/.tmux/plugins/tmux-fuzzback/fuzzback.tmux'
run-shell '~/.tmux/plugins/tmux-cmd-capture/tmux_capture_last_command_output.tmux'

@ -0,0 +1 @@
Subproject commit bfd0f897b32aea2eaa739520a6bd0a1b22d1d864