Code Monkey home page Code Monkey logo

tmuxrc's Introduction

My tmux configuration

Usage

NixOS

Using it in NixOS configuration.nix

Here is an example of how it may look like in your configuration.nix:

{ pkgs, ... }:
let
  tmuxConfig = pkgs.callPackage (pkgs.fetchFromGitHub {
    owner  = "unclechu";
    repo   = "tmuxrc";
    rev    = "0000000000000000000000000000000000000000";
    sha256 = "0000000000000000000000000000000000000000000000000000";
  }) {};
in
{
  programs.tmux = {
    enable = true;
    extraConfig = tmuxConfig.config;
  };

  # This is optional. In case you need ‘tmuxsh’ script always available.
  environment.systemPackages = [
    tmuxConfig.tmuxsh
  ];
}

Run in a Nix Shell

nix-shell --run tmux

Other OS

  1. Clone this repo somewhere, say to ~/.my-tmux-config:

    git clone --recursive https://github.com/unclechu/tmuxrc.git ~/.my-tmux-config
  2. Create ~/.tmux/plugins directory:

    mkdir -p ~/.tmux/plugins
  3. Create symlink ~/.tmux/plugins/tpm pointing to tpm directory (Tmux Plugin Manager):

    ln -s ~/.my-tmux-config/tpm ~/.tmux/plugins/tpm
  4. Partially the configuration is provided by apps/tmuxsh script. Add it to your PATH environment variable (it could be .local/bin for instance, depends on your setup) but for this usage example we will manually override PATH. Just make sure that this runs successfully:

    ~/.my-tmux-config/apps/tmuxsh help
  5. Either create a symlink ~/.tmux.conf that points to .tmux.conf file:

    ln -s ~/.my-tmux-config/.tmux.conf ~/.tmux.conf

    Or if you want to be able to add some local changes to the config create new ~/.tmux.conf file:

    touch ~/.tmux.conf

    And include .tmux.conf in that file and add some local changes:

    source ~/.my-tmux-config/.tmux.conf
    set -g prefix ^B
  6. Run tmux (PATH is overridden for tmuxsh script):

    PATH=~/.my-tmux-config/apps:$PATH tmux

    And install the plugins by pressing prefix (Ctrl + b by default) + I (capital i, Shift + i)

License

Public Domain

Author

Viacheslav Lotsmanov

tmuxrc's People

Contributors

unclechu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.