https://github.com/perlpunk/tmux-version-switcher
Select interpreter versions in tmux panes automatically
https://github.com/perlpunk/tmux-version-switcher
perlbrew plenv pyenv rbenv tmux tmux-plugins
Last synced: about 1 month ago
JSON representation
Select interpreter versions in tmux panes automatically
- Host: GitHub
- URL: https://github.com/perlpunk/tmux-version-switcher
- Owner: perlpunk
- Created: 2016-07-30T21:09:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T15:00:02.000Z (almost 9 years ago)
- Last Synced: 2025-02-05T18:04:45.910Z (3 months ago)
- Topics: perlbrew, plenv, pyenv, rbenv, tmux, tmux-plugins
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Select several interpreter versions in tmux panes automatically.
* perlbrew
* plenv
* rbenv
* pyenv# Usage
$tool shell v1 v2 ...
Opens tiled panes and selects the specified versions.
Activates synchronize-panes.$tool run '$x = 23' v1 v2 ...
Does what `shell` does and runs the specified command in your interpreter.
$tool exec 'perl myapp.pl' v1 v2 ...
Does what `shell` does and runs the specified command.
# Installation
% git clone https://github.com/perlpunk/tmux-version-switcher.git
# or
% git hub clone perlpunk/tmux-version-switcher
# put this in your .bashrc/.zshrc:
% source /path/to/tmux-version-switcher/init# Examples
% tmux-perlbrew-switcher shell perl-5.22.0 perl-5.24.0
# tmux opens with two tiled panes, with the specified versions% tmux-perlbrew-switcher run '$x = 23' perl-5.22.0 perl-5.24.0
# tmux opens with two tiled panes and runs `perl -wE'$x = 23'`% tmux-perlbrew-switcher exec 'perl myapp.pl' perl-5.22.0 perl-5.24.0
# tmux opens with two tiled panes and runs `perl myapp.pl`# Shell Tab Completion
There is tab completion available for bash and zsh.
Sourcing the init script should set it all up for you.
The files are in the share/bash and share/zsh folders.Note for zsh users:
Sourcing the init script should happen before the compinit call.Then you will be able to do:
% $tool # shell, run, exec
% $tool shell # list versions# Requirements
* bash
* tmux
* perlbrew, plenv, ...
* sed (used in completion)