tmux

文章目录

    Install tmuxinator on Ubuntu

    $ sudo apt-get install rubygem
    $ sudo gem install tmuxinator
    

    Manage configurattion with tmuxinator

    add below line to .bash_profile

    export EDITOR=vim
    

    new a configure file

    $ tmuxinator open <project_name>
    

    open a project

    $ tmuxinator <project_name>
    

    Common shortcut

    rename a window:

    PREFIX ,
    

    new a window:

    PREFIX c
    

    copy:

    PREFIX [, SPACE to start, ENTER to end
    

    paste:

    PREFIX ]
    

    kill pane:

    PREFIX x
    

    new session:

    tmux new -s sunzhongwei 
    

    attach session:

    tmux attach -t <id>     (tmux ls 获得)
    

    Destroy the given session

    closing any windows linked to it and no other sessions,
    and detaching all clients attached to it.

    tmux kill-session -t sunzhongwei 
    

    如何管理 tmuxinator 的配置文件

    统一放到私有配置仓库中。

    关于作者 🌱

    我是来自山东烟台的一名开发者,有感兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊,或者关注我的个人公众号“大象工具”, 查看更多联系方式