Sha256: 0ce42876a5c3cd2e2dae96b867b8d71cfc46fcbf224b992e5df03c254c53753b

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

# Tmux ERB Parser
[![Build Status](https://travis-ci.org/epaew/tmux-erb-parser.svg?branch=master)](https://travis-ci.org/epaew/tmux-erb-parser)

A Tmux plugin to load tmux.conf.erb  
[What's ERB?](https://ruby-doc.org/stdlib-2.5.1/libdoc/erb/rdoc/ERB.html)

## Requirements
* bash
    * For script execution.
    * You can use whatever you like as the default shell.
* git
* ruby:
    * 2.3 or higher is required.
* tmux

## How to use
1. Create your `tmux.conf.erb` and place it.
    * By default, tmux-erb-parser loads all `*.erb` files in `~/.config/tmux/`
    * Or you can change the load path. (Please see below.)
2. Install tmux-erb-parser and run tmux!

### Install with tpm (Tmux Plugin Manager)
* Put this at the bottom of `~/.tmux.conf` (**Not your tmux.conf.erb!**):
    ```tmux
    setenv -g TMUX_CONF_EXT_PATH "path/to/tmux.conf.erb" # set your tmux.conf.erb's path
    # Note: You can specify multiple files using glob expressions. This is parsed by bash.

    set -g @plugin 'epaew/tmux-erb-parser'
    set -g @plugin 'tmux-plugins/tpm'
    # and list other plugins you want to install

    # Initialize Tmux plugin manager (keep this line at the very bottom of tmux.conf)
    run '~/.tmux/plugins/tpm/tpm'
    ```

* Run tmux and press `Prefix + I` to install plugins!

### Install and configure with git/rubygems
* Install:
    * with git:
        ```bash
        git clone https://github.com/epaew/tmux-erb-parser ~/.tmux/plugins/tmux-erb-parser
        ```
    * from rubygems:
        ```bash
        gem install tmux-erb-parser
        ```

* Configure:
    * Put this in `~/.tmux.conf` (**Not your tmux.conf.erb!**):
    ```tmux
    run 'path/to/bin/tmux-erb-parser --inline path/to/tmux.conf.erb'
    ```

## License
[MIT](LICENSE)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tmux-erb-parser-0.1.2 README.md