Skip to content
forked from nyuyuyu/tmux-pet

Tmux plugin for pet snippet manager

License

Notifications You must be signed in to change notification settings

sha5010/tmux-pet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tmux-pet

This plugin calls pet via tmux.

Installation with Tmux Plugin Manager (recommended)

Add plugin to the list of TPM plugins in .tmux.conf:

set -g @plugin 'nyuyuyu/tmux-pet'

Hit prefix + I to fetch the plugin and source it.

Add @pet-new-pane-key, @pet-vertical-split-pane-key and/or @pet-horizontal-split-pane-key in .tmux.conf:

set -g @pet-new-pane-key 'C-f'

Finally, reload tmux:

// type this in terminal
$ tmux source-file ~/.tmux.conf

Manual Installation

Clone the repo:

$ git clone https://github.com/nyuyuyu/tmux-pet ~/clone/path

Add this line to the bottom of .tmux.conf:

run-shell ~/clone/path/pet.tmux

Add @pet-new-pane-key, @pet-vertical-split-pane-key and/or @pet-horizontal-split-pane-key in .tmux.conf:

set -g @pet-new-pane-key 'C-f'

Finally, reload tmux:

// type this in terminal
$ tmux source-file ~/.tmux.conf

Plugin options

Options Description
@pet-path Path to pet binary.
@pet-pane-size Size of pane to display pet command. (e.g. 10)
@pet-pane-percentage Percentage of pane to display pet command. (e.g. 50)
@pet-new-pane-key Key binding for opening new full size pane to display pet command.
@pet-vertical-split-pane-key Key binding for opening vertically split pane to display pet command.
@pet-horizontal-split-pane-key Key binding for opening horizontally split pane to display pet command.

About

Tmux plugin for pet snippet manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%