Coder Social home page Coder Social logo

tsl's Introduction

TMUX Session Launcher

TSL is a BASH script that launches a tmux session named after the directory selected from a list. Many projects are organized into directories and jumping between them is sometimes necessary, for example, when multiple repositories are used instead of a single mono repo.

Requirements

  • bash
  • fd
  • fzf
  • tmux

Installation

Copy the ts file to a directory in your PATH.

Configuration

ts will look for directories (including symbolic links) inside $HOME/projects/git by default. To scan a different location, update the SOURCE_DIRECTORY variable in the ts script:

SOURCE_DIRECTORY="$HOME/projects/git"

Usage

From a command prompt, type ts, select a directory, and press enter. A tmux process will be created if one doesn't exist. Otherwise, the session will be attached to the existing instance. If a session already exists, it will be made active instead of creating a new one.

If ts is run from within tmux, a nested session will NOT be created.

tsl's People

Contributors

freddiehaddad avatar

Stargazers

 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.