Git Product home page Git Product logo

tmux-tanlog's Introduction

tmux-tanlog

Build Status

tmux-tanlog is a tmux/zsh version of tanlog (It's original GNU Screen version).

This tool saves console outputs into text files in /tmp/tanlog/. It depends on tmux and zsh.

Installation

From source codes

$ git clone https://github.com/r6eve/tmux-tanlog.git
$ cd tmux-tanlog
$ cargo install --path .

From executable binaries

See Releases. tmux-tanlog-${version}-x86_64-unknown-linux-musl is statically linked binary.

Arch Linux

yay -S tmux-tanlog-bin

Settings

And add the following to your .zshrc

tanlog_begin() { export TANLOG_LOGFILE=$(tmux-tanlog start "$1") }
tanlog_end() { tmux-tanlog end $TANLOG_LOGFILE }
typeset -Uga preexec_functions
typeset -Uga precmd_functions
preexec_functions+=tanlog_begin
precmd_functions+=tanlog_end

Output directory defaults to /tmp/tanlog. Set the environment variable TANLOG_DIR if you want to change it.

tmux-tanlog's People

Contributors

dependabot[bot] avatar r6eve avatar

Stargazers

 avatar

Watchers

 avatar  avatar

tmux-tanlog's Issues

Fix deprecated installation

> cargo install --force                                       
warning: Using `cargo install` to install the binaries for the package in current working directory is deprecated, use `cargo install --path .` instead. Use `cargo build` if you want to simply build the package.

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.