Git Product home page Git Product logo

tmux's Introduction

curl -LO https://invisible-island.net/datafiles/current/terminfo.src.gz && gunzip terminfo.src.gz

/usr/bin/tic -xe tmux-256color terminfo.src

If you want to use tmux-256color for all users, use sudo. The result is placed into /usr/share/terminfo:
sudo /usr/bin/tic -xe tmux-256color terminfo.src

在.zshrc或者或者.bashrc中添加

if [[ $TMUX != "" ]] then
    export TERM="tmux-256color"
else
    export TERM="xterm-256color"
fi

#Tmux的配置和使用

创建session

tmux new -s session_name

断开会话(不会关闭session)

prefix + d
tmux detach

回到session

tmux a -t session_name

关闭会话

tmux kill-session -t session_name

切换会话

tmux switch -t session_name

重命名会话

tmux rename-session -t session_name new_session_name
prefix $

关闭服务器(全部关闭)

tmux kill-server

查看所有会话

tmux ls
prefix s

安装插件

prefix I

创建新window

prefix c

导航到指定窗口

prefix number

关闭窗格

prefix x

将当前窗格分为一个独立窗口

prefix !

窗口重命名

prefix ,

下一个上一个窗口

prefix n/prefix p

选择窗口

prefix w

tmux's People

Contributors

chaozwn 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.