diff --git a/README.md b/README.md index 25ecc1b..e7cfb91 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,9 @@ A Tmux plugin for loading tmux.conf written in Ruby (eRuby) notation. 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.) - * Sample configuration file: [sample.tmux.conf.erb](test/fixtures/sample.tmux.conf.erb) + * Sample configuration file: + * [sample.tmux.conf.erb](test/fixtures/sample.tmux.conf.erb) + * [sample.tmux.conf.yaml](test/fixtures/sample.tmux.conf.yaml) 2. Install tmux-erb-parser and run tmux! ### Install with tpm (Tmux Plugin Manager) diff --git a/lib/tmux-erb-parser/version.rb b/lib/tmux-erb-parser/version.rb index 7f0bf26..125674a 100644 --- a/lib/tmux-erb-parser/version.rb +++ b/lib/tmux-erb-parser/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module TmuxERBParser - VERSION = '0.1.6' + VERSION = '0.2.0' end diff --git a/test/fixtures/sample.tmux.conf.yaml b/test/fixtures/sample.tmux.conf.yaml index 8ac1631..a0e48da 100644 --- a/test/fixtures/sample.tmux.conf.yaml +++ b/test/fixtures/sample.tmux.conf.yaml @@ -64,13 +64,12 @@ set: -g: status-left-length: 50 - status-left: | - "#[bg=magenta] #h [s#S] {?client_prefix,#[reverse],} <<%= prefix_key %>> " + status-left: '"#[bg=magenta] #h [s#S] {?client_prefix,#[reverse],} <<%= prefix_key %>> "' - set: -g: - status-right-length 25 - status-right "#[bg=cyan] %Y-%m-%d %H:%M:%S " if: - - 'test "${REMOTEHOST}${SSH_CONNECTION}"' - - 'set -g status-right ""' + - test "${REMOTEHOST}${SSH_CONNECTION}" + - set -g status-right ""