From d7b2556307f77826c085bfd909303b4439dfdb2d Mon Sep 17 00:00:00 2001 From: Rahul Gupta Date: Tue, 27 Nov 2018 23:31:25 +0530 Subject: [PATCH] Make the theme installable through TPM (#4) * Rename to have .tmux extension so TPM can pick it up * Create a separate file for TPM & source the theme file * Update readme with instructions for installation through TPM --- README.md | 9 +++++++++ gruvbox-tpm.tmux | 4 ++++ 2 files changed, 13 insertions(+) create mode 100755 gruvbox-tpm.tmux diff --git a/README.md b/README.md index abb3371..948e272 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Theme with 'retro groove' flavor for [Tmux][github-tmux], based on Pavel Pertsev ## Installation +### Install manually The simplest way is just: > HINT: Always make a backup of your config files before any action. @@ -16,6 +17,14 @@ The simplest way is just: cat tmux-gruvbox-dark.conf >> ~/.tmux.conf ``` +### Install through [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm) +Add plugin to the list of TPM plugins in `.tmux.conf` +``` +set -g @plugin 'egel/tmux-gruvbox' +``` +Hit `prefix + I` to fetch the plugin and source it. +Your tmux should be updated with the theme at this point. + ## License GPLv3 - Maciej Sypień diff --git a/gruvbox-tpm.tmux b/gruvbox-tpm.tmux new file mode 100755 index 0000000..3743475 --- /dev/null +++ b/gruvbox-tpm.tmux @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +tmux source-file "$CURRENT_DIR/tmux-gruvbox-dark.conf"