tmux

How to enable scrolling in tmux panels with mouse wheel? [closed]

对着背影说爱祢 提交于 2019-12-02 14:16:50
Need to enable scrolling into tmux panels with mouse wheel. How can I get that tips? Can I use it (if its exist of course) with mouse-select-pane on option? dm4 Origin Answer (deprecated) Try this: setw -g mode-mouse on It can be used with the mouse-select-pane on and mouse-select-window on options. Update After tmux 2.1, mode-mouse option is no longer available. You should now use: set -g mouse on to capture mouse event. There are some changes for Tmux 2.1 Mouse-mode has been rewritten. There's now no longer options for: mouse-resize-pane mouse-select-pane mouse-select-window mode-mouse

Move window between tmux clients

荒凉一梦 提交于 2019-12-02 14:05:36
I'm just learning tmux and I have no experience with screen. I'm wondering if I can move a window in one tmux client to another tmux client. I want to move my IRC client to a new window on my screen. mb14 Yes, you can use the move-window command: move-window [-d] [-s src-window] [-t dst-window] (alias: movew) This is similar to link-window, except the window at src-window is moved to dst-window. where src-window and dst-window have the form: session:window.pane (session and window can be either name or id). So, supposing you have an 'chat' session with an 'irc' window and want to move it to

How to terminate a window in tmux?

允我心安 提交于 2019-12-02 13:49:04
How to terminate a window in tmux? Like the Ctrl a k shortcut in screen with Ctrl a being the prefix. Kent's response fully answered your question, however if you are looking to change tmux's configuration to be similar to GNU Screen, here's a tmux.conf that I've used to accomplish this: # Prefix key set -g prefix C-a unbind C-b bind C-a send-prefix # Keys bind k confirm kill-window bind K confirm kill-server bind % split-window -h bind : split-window -v bind < resize-pane -L 1 bind > resize-pane -R 1 bind - resize-pane -D 1 bind + resize-pane -U 1 bind . command-prompt bind a last-window bind

tmux 入门

ぐ巨炮叔叔 提交于 2019-12-02 11:44:36
引言 在进行开发时,我习惯于将屏幕分成左右两个部分。左边显示的是文本编辑器,用于编辑代码。右边显示的是一个终端,用于执行代码。对于有图形界面的操作系统来说,以上需求非常容易实现,但是在一些时候,必须在没有安装图形界面的类Unix环境下进行开发。为了实现分屏,需要使用一个命令行工具,即tmux。 安装 在 Ubuntu 18.04 LTS 下,使用命令: sudo apt install tmux 安装tumux。 使用 1. 启动tmux 在终端下输入命令 tmux 即可启动tmux,tmux的界面相比终端而言,只是在屏幕底部多了一个状态栏。 2. 创建新窗口 创建一个tmux窗口的命令很简单。先使用 ctrl + b 激活tmux的控制台。后使用命令 c 即可。 需要说明的是,命令 ctrl + b 以及 c 都被tmux捕获,因此不会显示在终端上,但是可以通过状态栏看出,一共被创建了多少个窗口,以及当前的活动窗口是哪一个。 3. 切换窗口 先使用 ctrl + b 激活tmux的控制台。后使用命令 p 即可切换当前活动窗口的的 前一个窗口 为活动窗口。使用命令 n 可以切换当前活动窗口的 后一个窗口 为活动窗口。通过观察状态栏中当前活动窗口的变化可以得知以上命令的效果。 4. 以菜单方式查看与选择窗口 使用 ctrl + b 激活tmux的控制台。后使用命令 w

Vim NerdTree corrupts when using Tmux

泪湿孤枕 提交于 2019-12-01 17:29:35
问题 As described in the title, the nerdtree just corrupts when I'm scrolling down the screen in vim by "control + f". As shown in , most of the folder information, supposed to appear in the left bar, is tangled and covered by the file content. I did find similar issues posted in stackoverflow, but none of those got a good solution yet. Thanks 回答1: Put this into your ~/.bashrc : export TERM=screen-256color As you've found out from the tmux FAQ, "most display problems are due to incorrect TERM

How can I force `vagrant ssh` to do pseudo-tty allocation?

戏子无情 提交于 2019-12-01 11:05:13
The first thing I do after vagrant ssh is usually attaching to a tmux session. I want to automate this, so I try: vagrant ssh -c "tmux attach" , but it fails and says "not a terminal". After some googling I find this article and know that I should force a pseudo-tty allocation before executing a screen-based program, and it can be done with the -t option of ssh . But I don't know how to use this option with vagrant ssh . According to this documentation , you should try adding -- to the command. As I have not used vagrant , I am unsure of the formatting, but assume it would be similar to:

超轻量级纯文本界面 REPL 类语言 IDE

折月煮酒 提交于 2019-12-01 10:21:25
超轻量级纯文本界面 REPL 类语言 IDE 目录 介绍 特性 实现原理 安装插件 配置方法 使用说明 其他信息 介绍 这是基于 Vim + Tmux 快速定制的一个针对 REPL 类编程语言的超轻量级开发环境, 不需要任何 GUI , 运行于纯粹的文本界面, 所以响应速度很快, 而且对于系统的要求很低, 在一些内存有限的旧电脑上也可以流畅地运行. 原本的目标是搭建一个可以流畅运行于 Raspberry Pi 2 的超轻量级 Common Lisp 调试开发环境, 用户可以通过 SSH 登录到树莓派上进行不受限制的开发, 最大限度地利用树莓派的硬件计算能力, 而不需要启动任何类型的 视窗 . 后来发现本集成环境可以支持任何一种拥有 REPL 机制的编程语言, 如 Clojure , Racket , Schema 以及 Lua 等多种语言. 环境需求: 需要安装好 vim 和 tmux . 技能要求: 需要使用者熟悉基本的 vi 操作, 熟悉一般的 tmux 操作. 本项目git.oschina.net仓库 特性 优点: 方便 超轻量级 高度可定制 响应速度最快 使用超级流畅 支持结对编程 运行资源需求最少 可运行于内存有限的旧电脑 全平台支持:Linux|Win32|OSX 支持任意拥有命令行 REPL 机制的语言 支持快捷键从代码编辑区发送代码到REPL区进行调试 缺点: 跟

Disable for good VIM's number increment that is mapped to Ctrl-a

元气小坏坏 提交于 2019-12-01 00:10:03
I am using local and remote tmux sessions. To send commands to the local tmux I use Ctrl-a , and to the remote Ctrl-q . I have tried to disable the number increment that normally executes with Ctrl-a in vim, but it now triggers with Ctrl-q and i cannot find a way to disable it. BTW this happens only when a particular tmux window does not nest a remote one. Also, I think there still might be a combination of shortcuts in a remote tmux session that also triggers the increment. So is there a way to completely disable the function? An ideal solution would be to override it with a function that

How do i clear tmux screen while tailing logs?

北城余情 提交于 2019-11-30 17:39:22
I'm using tmux with iTerm2. Clear screen using Ctrl-L works when i'm in bash, but does not work when i'm tailing server logs. How do i fix this? You can clear the current buffer using send-keys -R but keep in mind that the application running inside that buffer will not notice that the buffer contents have been wiped. Reference Ctrl-L is bound to a readline command. However, while you are running the command that tails your log, bash is not receiving keyboard input. You could suspend the tail with Ctrl-Z, clear the screen with Ctrl-L, and resume the tail with fg . This is independent of tmux ;

Mac 采坑进阶录

跟風遠走 提交于 2019-11-30 16:22:27
1,加密的文件权限过高 sudo sudo chmod -R 777 ./ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0777 for '/Users/gaoyabing/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/Users/gaoyabing/.ssh/id_rsa": bad permissions git@git.souche-inc.com's password: Permission denied, please try again. git@git.souche-inc.com's password: 以上提示:私有秘钥的权限太高,认证拒绝。对我在 ~/ 路径执行了 sudo chmod -R 777 ./ 结果误操作