大家晒晒自己的tmux配置?

320 views
Skip to first unread message

ghosTM55

unread,
Feb 22, 2013, 9:07:37 PM2/22/13
to shlug
有朋友用tmux用的比较多的么?晒晒自己的配置?能够配有截图效果的话最好
让大家可以参考学习一下,谢谢

--
Thomas
Shanghai Linux User Group
GitCafe - Share a cup of open source

http://ghosTunix.org
Twitter: @ghosTM55

Wizard

unread,
Feb 22, 2013, 9:52:19 PM2/22/13
to sh...@googlegroups.com
在 2013年2月23日上午10:07,ghosTM55 <ghost...@gmail.com> 写道:
> 有朋友用tmux用的比较多的么?晒晒自己的配置?能够配有截图效果的话最好
> 让大家可以参考学习一下,谢谢

额。。。 自从你告诉我有这个玩意,我从来木有配置,就用了。。。
来学习~

>
> --
> Thomas
> Shanghai Linux User Group
> GitCafe - Share a cup of open source
>
> http://ghosTunix.org
> Twitter: @ghosTM55
>
> --
> -- You received this message because you are subscribed to the Google Groups
> Shanghai Linux User Group group. To post to this group, send email to
> sh...@googlegroups.com. To unsubscribe from this group, send email to
> shlug+un...@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
> 要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
> 要查看更多选项,请访问 https://groups.google.com/groups/opt_out
>
>



--
Wizard

黄浩松

unread,
Feb 22, 2013, 9:54:23 PM2/22/13
to sh...@googlegroups.com
还是晒zsh配置靠谱。。。。
Best Regards,
Haosdent Huang

ghosTM55

unread,
Feb 22, 2013, 10:01:30 PM2/22/13
to shlug

2013/2/23 黄浩松 <haos...@gmail.com>
还是晒zsh配置靠谱。。。。

zsh没什么好配置的,用oh my zsh

Marco

unread,
Feb 22, 2013, 10:35:35 PM2/22/13
to shlug
byobu默认配置算不算


--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 



--
LinuX
Violin
Canon EOS

月忧茗

unread,
Feb 22, 2013, 10:40:01 PM2/22/13
to sh...@googlegroups.com
一直默认配置

不过现在 用 tmux 越来越少了


2013/2/23 Marco <chopi...@gmail.com>

Chaos Eternal

unread,
Feb 22, 2013, 11:07:40 PM2/22/13
to sh...@googlegroups.com
set-option -ag update-environment " DBUS_SESSION_BUS_ADDRESS
XDG_SESSION_COOKIE XDG_SESSION_PATH"
set-option -g default-terminal screen-256color

其他还没研究

2013/2/23 ghosTM55 <ghost...@gmail.com>:

ghosTM55

unread,
Feb 22, 2013, 11:21:44 PM2/22/13
to shlug

On Sat, Feb 23, 2013 at 12:07 PM, Chaos Eternal <chaose...@shlug.org> wrote:
set-option -ag update-environment " DBUS_SESSION_BUS_ADDRESS
XDG_SESSION_COOKIE XDG_SESSION_PATH"
set-option -g default-terminal screen-256color

我主要想看看快捷键绑定,默认的快捷键有点繁琐
比如如何平均3列切分tmux屏幕,然后在列与列之间的切换操作等等

Ashi

unread,
Feb 23, 2013, 12:06:29 AM2/23/13
to SHLUG
我的还是默认配置,默认绑定用久了觉得还好,至少没有遇到与其它软件冲突。我现在觉得panel之间切换有时候还要去按方向键比较麻烦。


--

yaroot

unread,
Feb 23, 2013, 1:59:43 AM2/23/13
to sh...@googlegroups.com
2013/2/23 Ashi <ashi...@gmail.com>:
> 我的还是默认配置,默认绑定用久了觉得还好,至少没有遇到与其它软件冲突。我现在觉得panel之间切换有时候还要去按方向键比较麻烦。

bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

leeway1985

unread,
Feb 23, 2013, 3:13:26 AM2/23/13
to sh...@googlegroups.com
Tmux �ض������� �Ǻǡ� ��ʵ������Щ����û��ʲô�á� ��Ҫ�ǿ�ݼ�������Ѿ�ϰ���ˡ� tmux̫�����ˡ�
���õ����Dz鿴 htop�� �鿴doc�� ����ssh ����ܷ��㡣

���� ��ʼ�������� teamocil ��������� ��� tmux ����һ�������ʼ������������������� �dz��ķ��㡣


# �������ÿ�����������ģʽ������show-options -g��ѯ
# set-option -g base-index 1                        # ���ڵij�ʼ��ţ�Ĭ��Ϊ0����������Ϊ1
set-option -g display-time 5000                   # ��ʾ��Ϣ�ij���ʱ�䣻�����㹻��ʱ���Ա��⿴������ʾ����λΪ����
set-option -g repeat-time 1000                    # ����̨�����ij���ʱ�䣻���ú��ʵ�ʱ���Ա���ÿ�β�����Ҫ�ȼ������̨����λΪ����
set-option -g history-limit 100000                # ��ʷ��¼�ع�����
set-option -g status-keys emacs                   # ����״̬��ʱ��Ĭ�ϼ��̲��֣���������Ϊvi��emacs
set-option -g status-utf8 on                      # ����״̬����UTF-8֧��
set-option -g status-bg black                     # ״̬����ʾ����ɫ
set-option -g status-fg green
# set-option -g status-interval 1

# �������ÿ�����������ģʽ������show-window-options -g��ѯ
set-window-option -g mode-keys emacs    #����ģʽ�е�Ĭ�ϼ��̲��֣���������Ϊvi��emacs
set-window-option -g utf8 on            #�������ڵ�UTF-8֧��
# default window title colours
set-window-option -g window-status-fg cyan
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colours
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright

# command/message line colours
set -g status-left "#[fg=green,bright] ❐ #I  "
set -g status-right "#H #[fg=cyan,bright]#[fg=yellow]%Y-%m-%d %H:%M %p#[default] "

set -g message-fg white
set -g message-bg cyan
set -g message-attr bright

# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -s escape-time 0
setw -g aggressive-resize on

# Notifying if other windows has activities
set -g visual-activity on
setw -g monitor-activity off

# Highlighting the active window in status bar
setw -g window-status-current-bg black
setw -g window-status-current-fg yellow


# ���÷ָ���Ļ C-b C-|
unbind '"'
bind - splitw -v # �ָ��������������
unbind %
bind \ splitw -h # �ָ��������������

# ������ʾ������ �л�����ͬ�Ĵ���ʹ�� C-b C-o
# bind o swapp -U
bind o select-pane -L

# ѡ����һ��buffer
bind ^b last

# �رյ�ǰbuffer
bind -n M-` killp

# �½�һ��������ʾ����
bind h splitw -h htop
bind k list-keys
bind m command-prompt -p man: "splitw -h 'exec man %%'"
bind s command-prompt -p ssh: "new-window -n %1 'ssh %1'"
bind a choose-session

# ճ��
# move x clipboard into tmux paste buffer
bind -n C-v run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# move tmux copy buffer into x clipboard
bind C-y run "tmux show-buffer | xclip -i"

# ǰ��window�л�
bind -n M-left prev
bind -n M-right next

bind M-x command-prompt

# ���¼�������
bind r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"

bind -r < resize-pane -L 10
bind -r > resize-pane -R 10
bind -r - resize-pane -D 5
bind -r + resize-pane -U 5

set -g pane-active-border-fg cyan

# Toggle mouse on with ^B m
bind m \
  set -g mode-mouse on \;\
  set -g mouse-resize-pane on \;\
  set -g mouse-select-pane on \;\
  set -g mouse-select-window on \;\
  display 'Mouse: ON'

# Toggle mouse off with ^B M
bind M \
  set -g mode-mouse off \;\
  set -g mouse-resize-pane off \;\
  set -g mouse-select-pane off \;\
  set -g mouse-select-window off \;\
  display 'Mouse: OFF'




On 02/23/2013 02:59 PM, yaroot wrote:
2013/2/23 Ashi <ashi...@gmail.com>:
�ҵĻ���Ĭ�����ã�Ĭ�ϰ��þ��˾��û��ã�����û�����������������ͻ�������ھ���panel֮���л���ʱ��Ҫȥ�������Ƚ��鷳��

黄浩松

unread,
Feb 23, 2013, 3:17:10 AM2/23/13
to sh...@googlegroups.com
> zsh没什么好配置的,用oh my zsh
+1024

2013/2/23 ghosTM55 <ghost...@gmail.com>

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 

依云

unread,
Feb 23, 2013, 5:34:37 AM2/23/13
to sh...@googlegroups.com
On Sat, Feb 23, 2013 at 10:07:37AM +0800, ghosTM55 wrote:
> 有朋友用tmux用的比较多的么?晒晒自己的配置?能够配有截图效果的话最好
> 让大家可以参考学习一下,谢谢

tmux: http://p.vim-cn.com/d12
zsh: http://p.vim-cn.com/d13/sh

--
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?

ghosTM55

unread,
Feb 23, 2013, 7:45:07 AM2/23/13
to shlug
awesome, thanks a lot


2013/2/23 leeway1985 <leewa...@gmail.com>
Tmux 重度依赖啊 呵呵。 其实这里有些配置没有什么用。 主要是快捷键的配置已经习惯了。 tmux太好用了。
常用到的是查看 htop, 查看doc, 还有ssh 这个很方便。

另外 初始化可以用 teamocil 这个东西。 配合 tmux 可以一个命令初始化启动整个开发环境。 非常的方便。


# 此类配置可以在命令行模式中输入show-options -g查询
# set-option -g base-index 1                        # 窗口的初始序号;默认为0,这里设置为1
set-option -g display-time 5000                   # 提示信息的持续时间;设置足够的时间以避免看不清提示,单位为毫秒
set-option -g repeat-time 1000                    # 控制台激活后的持续时间;设置合适的时间以避免每次操作都要先激活控制台,单位为毫秒
set-option -g history-limit 100000                # 历史记录回滚条数
set-option -g status-keys emacs                   # 操作状态栏时的默认键盘布局;可以设置为vi或emacs
set-option -g status-utf8 on                      # 开启状态栏的UTF-8支持
set-option -g status-bg black                     # 状态栏显示的颜色

set-option -g status-fg green
# set-option -g status-interval 1

# 此类设置可以在命令行模式中输入show-window-options -g查询
set-window-option -g mode-keys emacs    #复制模式中的默认键盘布局;可以设置为vi或emacs
set-window-option -g utf8 on            #开启窗口的UTF-8支持

# default window title colours
set-window-option -g window-status-fg cyan
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colours
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright

# command/message line colours
set -g status-left "#[fg=green,bright] ❐ #I  "
set -g status-right "#H #[fg=cyan,bright]#[fg=yellow]%Y-%m-%d %H:%M %p#[default] "

set -g message-fg white
set -g message-bg cyan
set -g message-attr bright

# Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -s escape-time 0
setw -g aggressive-resize on

# Notifying if other windows has activities
set -g visual-activity on
setw -g monitor-activity off

# Highlighting the active window in status bar
setw -g window-status-current-bg black
setw -g window-status-current-fg yellow


# 设置分割屏幕 C-b C-|
unbind '"'
bind - splitw -v # 分割成上下两个窗口
unbind %
bind \ splitw -h # 分割成左右两个窗口

# 交换显示的内容 切换到不同的窗口使用 C-b C-o

# bind o swapp -U
bind o select-pane -L

# 选择上一个buffer
bind ^b last

# 关闭当前buffer
bind -n M-` killp

# 新建一个窗口显示内容

bind h splitw -h htop
bind k list-keys
bind m command-prompt -p man: "splitw -h 'exec man %%'"
bind s command-prompt -p ssh: "new-window -n %1 'ssh %1'"
bind a choose-session

# 粘贴

# move x clipboard into tmux paste buffer
bind -n C-v run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# move tmux copy buffer into x clipboard
bind C-y run "tmux show-buffer | xclip -i"

# 前后window切换

bind -n M-left prev
bind -n M-right next

bind M-x command-prompt

# 重新加载配置

bind r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"

bind -r < resize-pane -L 10
bind -r > resize-pane -R 10
bind -r - resize-pane -D 5
bind -r + resize-pane -U 5

set -g pane-active-border-fg cyan

# Toggle mouse on with ^B m
bind m \
  set -g mode-mouse on \;\
  set -g mouse-resize-pane on \;\
  set -g mouse-select-pane on \;\
  set -g mouse-select-window on \;\
  display 'Mouse: ON'

# Toggle mouse off with ^B M
bind M \
  set -g mode-mouse off \;\
  set -g mouse-resize-pane off \;\
  set -g mouse-select-pane off \;\
  set -g mouse-select-window off \;\
  display 'Mouse: OFF'





On 02/23/2013 02:59 PM, yaroot wrote:
2013/2/23 Ashi <ashi...@gmail.com>:
我的还是默认配置,默认绑定用久了觉得还好,至少没有遇到与其它软件冲突。我现在觉得panel之间切换有时候还要去按方向键比较麻烦。
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 

Chaos Eternal

unread,
Feb 23, 2013, 7:53:39 AM2/23/13
to sh...@googlegroups.com
tmux里面能不能像 xterm那样设fastScroll和jumpScroll ?

2013/2/23 leeway1985 <leewa...@gmail.com>:
> Tmux 重度依赖啊 呵呵。 其实这里有些配置没有什么用。 主要是快捷键的配置已经习惯了。 tmux太好用了。
> 常用到的是查看 htop, 查看doc, 还有ssh 这个很方便。
>
> 另外 初始化可以用 teamocil 这个东西。 配合 tmux 可以一个命令初始化启动整个开发环境。 非常的方便。
>
>
> # 此类配置可以在命令行模式中输入show-options -g查询
> # set-option -g base-index 1 # 窗口的初始序号;默认为0,这里设置为1
> set-option -g display-time 5000 #
> 提示信息的持续时间;设置足够的时间以避免看不清提示,单位为毫秒
> set-option -g repeat-time 1000 #
> 控制台激活后的持续时间;设置合适的时间以避免每次操作都要先激活控制台,单位为毫秒
> set-option -g history-limit 100000 # 历史记录回滚条数
> set-option -g status-keys emacs #
> 操作状态栏时的默认键盘布局;可以设置为vi或emacs
> set-option -g status-utf8 on # 开启状态栏的UTF-8支持
> set-option -g status-bg black # 状态栏显示的颜色
> set-option -g status-fg green
> # set-option -g status-interval 1
>
> # 此类设置可以在命令行模式中输入show-window-options -g查询
> set-window-option -g mode-keys emacs #复制模式中的默认键盘布局;可以设置为vi或emacs
> set-window-option -g utf8 on #开启窗口的UTF-8支持
> # 设置分割屏幕 C-b C-|
> unbind '"'
> bind - splitw -v # 分割成上下两个窗口
> unbind %
> bind \ splitw -h # 分割成左右两个窗口
>
> # 交换显示的内容 切换到不同的窗口使用 C-b C-o
> # bind o swapp -U
> bind o select-pane -L
>
> # 选择上一个buffer
> bind ^b last
>
> # 关闭当前buffer
> bind -n M-` killp
>
> # 新建一个窗口显示内容
> bind h splitw -h htop
> bind k list-keys
> bind m command-prompt -p man: "splitw -h 'exec man %%'"
> bind s command-prompt -p ssh: "new-window -n %1 'ssh %1'"
> bind a choose-session
>
> # 粘贴
> # move x clipboard into tmux paste buffer
> bind -n C-v run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
> # move tmux copy buffer into x clipboard
> bind C-y run "tmux show-buffer | xclip -i"
>
> # 前后window切换
> bind -n M-left prev
> bind -n M-right next
>
> bind M-x command-prompt
>
> # 重新加载配置
> bind r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
>
> bind -r < resize-pane -L 10
> bind -r > resize-pane -R 10
> bind -r - resize-pane -D 5
> bind -r + resize-pane -U 5
>
> set -g pane-active-border-fg cyan
>
> # Toggle mouse on with ^B m
> bind m \
> set -g mode-mouse on \;\
> set -g mouse-resize-pane on \;\
> set -g mouse-select-pane on \;\
> set -g mouse-select-window on \;\
> display 'Mouse: ON'
>
> # Toggle mouse off with ^B M
> bind M \
> set -g mode-mouse off \;\
> set -g mouse-resize-pane off \;\
> set -g mouse-select-pane off \;\
> set -g mouse-select-window off \;\
> display 'Mouse: OFF'
>
>
>
>
>
> On 02/23/2013 02:59 PM, yaroot wrote:
>
> 2013/2/23 Ashi <ashi...@gmail.com>:
>
> 我的还是默认配置,默认绑定用久了觉得还好,至少没有遇到与其它软件冲突。我现在觉得panel之间切换有时候还要去按方向键比较麻烦。
>
> bind h select-pane -L
> bind j select-pane -D
> bind k select-pane -U
> bind l select-pane -R
>
>

Gene Wu

unread,
Feb 23, 2013, 12:05:03 PM2/23/13
to SHLUG
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind 0 clear-history
bind C-\ last-window
bind N send-keys " tmux-panes -v" C-m
bind V send-keys " tmux-panes -h" C-m
bind \ select-window -t :+
bind ` select-pane -t :.+
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
set -g automatic-rename off
set -g base-index 1
set -g default-terminal "screen-256color"
set -g history-limit 2000
set -g status-interval 60
set -g status-left '#[default,bold](#S)#(getmyip | head -n1)#[default]'
set -g status-left-length 50
set -g status-right '#[fg=red,bold]#(uptime | sed
"s/.*averages*:/Loads :/")#[default] #[fg=white]%H:%M#[default]'
set -g visual-activity on
set-option -g bell-action any
set-option -g default-shell $SHELL
set-option -g prefix C-\\
set-option -g set-titles on
set-option -g set-titles-string 'S:#S|W:#I|P:#P|#W|#H' #T #title
set-option -g status-bg blue
set-option -g status-fg yellow
set-option -g status-justify left
set-option -g status-keys vi
set-option -g status-utf8 on
set-option -g utf8 on
set-option -g visual-bell on
setw -g automatic-rename off
setw -g mode-keys vi
setw -g mode-mouse on
setw -g monitor-activity on
setw -g mouse-resize-pane on
setw -g mouse-select-pane on
setw -g mouse-select-window on
setw -g window-status-bg green
setw -g window-status-current-bg black
setw -g window-status-current-fg green
setw -g window-status-fg black
unbind C-b
unbind N
unbind V


我用的是Ctrl+\做prefix

有几个我用的觉得不错的
Ctr+\ Ctrl+\按住Ctrl两下\会回到最后的window
Ctrl+\ `切换panel (学习Mac的CMD+`)
一些调整大小的,随便用用

爱好折腾的一定要加reload哦

Frank_Xu

unread,
Feb 23, 2013, 12:07:33 PM2/23/13
to sh...@googlegroups.com
我的设置也很简单,最近一次的设置就是更改绑定键到C-o。

主要原因是mosh(http://mosh.mit.edu/)非常好用,笔记本合上suspend,换wifi环境再打开电脑都能一直连着,非常爽。妈妈再也不用担心我SSH了。而且Emacs也流畅起来了,记得邮件列表里有同学提到过C-o键是emacs为数不多的空余组合键,遂将Tmux的C-b更换到C-o。这样在服务器上开emacs server,用emacsclient就跟使用vi一样舒服了。

Auston Jary

unread,
Feb 23, 2013, 8:30:25 PM2/23/13
to sh...@googlegroups.com
On 02/23 10:07, ghosTM55 wrote:
> 有朋友用tmux用的比较多的么?晒晒自己的配置?能够配有截图效果的话最好
> 让大家可以参考学习一下,谢谢

#-- bindkeys --#
#绑定到Ctrl-q,好像有些软件冲突
set -g prefix ^q
unbind ^b
bind q send-prefix

#切换window用的F2这种,貌似也很容易冲突。。。
bind -n 'F2' prev
bind -n 'F3' next
bind -n 'F7' new-window
bind -n 'F8' kill-window
bind -n 'F9' detach

#分割窗口分别用"-"和"|"
unbind '"'
bind - splitw -v
unbind %
bind | splitw -h

#窗口间切换就是先ctrl-q再j,k,h,l切换
bind k selectp -U
bind j selectp -D
bind h selectp -L
bind l selectp -R

#更改当前窗口的大小,先ctrl-q再ctrl-j,k,l,h这样变得大小
bind ^k resizep -U 10
bind ^j resizep -D 10
bind ^h resizep -L 10
bind ^l resizep -R 10

#更改当前窗口的位置
bind ^u swapp -U
bind ^d swapp -D

#新开窗口并在其中运行某些命令
bind '~' splitw htop
bind m command-prompt "splitw -h 'exec man %%'"

#-- apps --#
#运行 tmux att 时就直接建立下面四个windows
new -s start -n ssh 'exec python2 ~/docs/auto_ssh.py'
new-window mutt
new-window 'emacsclient -t -a ""'
new-window zsh

#运行 tmux att 时进入第4个window
selectw -t 4


有个tmux-powerline[1],还挺好看的,不过我没用过。。。

[1]: https://github.com/erikw/tmux-powerline

sillyou su

unread,
Feb 24, 2013, 1:26:23 AM2/24/13
to sh...@googlegroups.com
刚刚开始用,我基本是使用freebsd china的维基上的配置
https://wiki.freebsdchina.org/software/t/tmux

#此类配置可以在命令行模式中输入show-options -g查询
set-option -g base-index 1                        #窗口的初始序号;默认为0,这里设置为1
set-option -g display-time 5000                   #提示信息的持续时间;设置足够的时间以避免看不清提示,单位为毫秒
set-option -g repeat-time 1000                    #控制台激活后的持续时间;设置合适的时间以避免每次操作都要先激活控制台,单位为毫秒
set-option -g status-keys vi                      #操作状态栏时的默认键盘布局;可以设置为vi或emacs
set-option -g status-right "#(date +%H:%M' ')"    #状态栏右方的内容;这里的设置将得到类似23:59的显示
set-option -g status-right-length 10              #状态栏右方的内容长度;建议把更多的空间留给状态栏左方(用于列出当前窗口)
set-option -g status-utf8 on                      开启状态栏的UTF-8支持

#此类设置可以在命令行模式中输入show-window-options -g查询
set-window-option -g mode-keys vi    #复制模式中的默认键盘布局;可以设置为vi或emacs
set-window-option -g utf8 on         #开启窗口的UTF-8支持

#将激活控制台的快捷键由Ctrl+b修改为Ctrl+a
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix

#添加自定义快捷键
bind-key z kill-session                     #按z结束当前会话;相当于进入命令行模式后输入kill-session
bind-key h select-layout even-horizontal    #按h将当前面板布局切换为even-horizontal;相当于进入命令行模式后输入select-layout even-horizontal
bind-key v select-layout even-vertical      #按v将当前面板布局切换为even-vertical;相当于进入命令行模式后输入select-layout even-vertical


2013/2/24 Auston Jary <any...@gmail.com>
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out





--
苏沛

Jiaying Ren

unread,
Feb 24, 2013, 4:03:22 AM2/24/13
to sh...@googlegroups.com
On 02/23/13, ghosTM55 <ghost...@gmail.com> wrote:
> ~有朋友用tmux用的比较多的么?晒晒自己的配置?能够配有截图效果的话最好
> ~让大家可以参考学习一下,谢谢
> ~
我是基于这本[tmux: Productive Mouse-Free
Development](http://pragprog.com/book/bhtmux/tmux)配的

[tacey_tmux.conf](https://gist.github.com/Tacey/5023153)



--
Best Regards !
-----------------------------------------------------------------
Jiaying Ren(任家英)
School of Information Science & Engineering
Lanzhou University,China
-----------------------------------------------------------------
tmux.png

Easior Lars

unread,
Feb 24, 2013, 4:20:21 AM2/24/13
to sh...@googlegroups.com
woo~
你用的WM是哪个?

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out


<tmux.png>


Jiaying Ren

unread,
Feb 24, 2013, 4:31:10 AM2/24/13
to sh...@googlegroups.com
On 02/24/13, Easior Lars <easio...@yahoo.com> wrote:
> ~woo~
> ~你用的WM是哪个?

awesome

Terry Wang

unread,
Feb 25, 2013, 1:17:17 AM2/25/13
to sh...@googlegroups.com

和 Kevin 的差不多,也是根据 Brian P. Hogan 的 tmux 书配置的,比他的少了 uptime 和电池信息。

绑定改成 Ctrl + a 的了 -_-z

alswl

unread,
Feb 25, 2013, 5:38:08 AM2/25/13
to sh...@googlegroups.com
赞 awesome,忍不住贴图了

我只绑定了 F11 / F12 快捷键,F9 / F10 绑定了服务器的 screen


桌面也是 awesome,上下屏,unfocus 的屏幕会显示背景。 awesome 的配置文件在 https://github.com/alswl/awesome

内嵌图片 1


2013/2/24 Jiaying Ren <renjiay...@gmail.com>
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out





--
-----------------------------------------
alswl
Blog: http://log4d.com/
Mail: alswlx[a]gmailDOTcom
-----------------------------------------
tmux.png

依云

unread,
Feb 25, 2013, 9:49:05 AM2/25/13
to sh...@googlegroups.com
On Mon, Feb 25, 2013 at 06:38:08PM +0800, alswl wrote:
> 赞 awesome,忍不住贴图了
>
> 我只绑定了 F11 / F12 快捷键,F9 / F10 绑定了服务器的 screen
>
> 配置文件在 https://gitcafe.com/alswl/.oOo./blob/master/.tmux.conf 在 GitCafe 哦
>
> 桌面也是 awesome,上下屏,unfocus 的屏幕会显示背景。 awesome 的配置文件在
> https://github.com/alswl/awesome
>
> [image: 内嵌图片 1]

你们这些用 Awesome 的都能忍受 GTK 2 的默认主题么?

--
Best regards,
lilydjwg

吴江

unread,
Feb 25, 2013, 6:35:56 PM2/25/13
to sh...@googlegroups.com
Use lxappearance.

吴江

Changyuan Yu

unread,
Feb 26, 2013, 7:34:47 AM2/26/13
to sh...@googlegroups.com

用gtk-chtheme换主题吧。

ghosTM55

unread,
Feb 28, 2013, 9:21:06 AM2/28/13
to shlug

On Thu, Feb 28, 2013 at 8:28 PM, Hongxu Chen <leftco...@gmail.com> wrote:
顺便求问一下emacs下写C++比较好的配置~

看这里 http://emacser.com/emacs-cpp-dev.htm

fenghelong

unread,
Feb 28, 2013, 9:23:27 AM2/28/13
to sh...@googlegroups.com
On 2013��02��28�� 20:28, Hongxu Chen wrote:
https://github.com/nonoob/dotfiles/blob/master/_tmux.conf

˳������һ��emacs��дC++�ȽϺõ�����~

On Saturday, February 23, 2013 10:07:37 AM UTC+8, ghosTM55 wrote:
��������tmux�õıȽ϶��ô��ɹɹ�Լ������ã��ܹ����н�ͼЧ��Ļ����
�ô�ҿ��Բο�ѧϰһ�£�лл

--
Thomas
Shanghai Linux User Group
GitCafe - Share a cup of open source

http://ghosTunix.org
Twitter: @ghosTM55
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
���յ����ʼ�����Ϊ������ Google ������̳�ġ�Shanghai Linux User Group����̳��
Ҫ�˶�����̳��ֹͣ���մ���̳�ĵ����ʼ����뷢�͵����ʼ��� shlug+un...@googlegroups.com��
Ҫ�鿴���ѡ������ https://groups.google.com /groups/opt_out��
 
 
emacs��cscope cedet autocomplete yasnippet��ȫ�ܹ�Ӧ���ˣ����Կ�����gdb-UI

fenghelong

unread,
Feb 28, 2013, 9:24:42 AM2/28/13
to sh...@googlegroups.com
ecbҲֵ��һ��

Yuanchong Zhu

unread,
Mar 3, 2013, 7:32:58 PM3/3/13
to sh...@googlegroups.com
用xmonad的孩纸表示自己写gtkrc很欢乐啊〜
--
灿烂星空,你就是我的英雄!

Gene Wu

unread,
Mar 4, 2013, 2:20:46 AM3/4/13
to SHLUG
你怎么加上去让awesome用呢?

2013/2/26 吴江 <master...@gmail.com>:

alswl

unread,
Mar 4, 2013, 10:55:26 AM3/4/13
to sh...@googlegroups.com
感谢,用 gtk-chtheme 改了一下主题,瞬间感觉前进了 10 年一样(Arch 默认的 gtk 爆丑)。
顺便也用这货把办公室的 Ubuntu 界面改掉。


--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。
 
 

Chaos Eternal

unread,
Aug 9, 2013, 8:14:48 AM8/9/13
to sh...@googlegroups.com
自己挖自己的:

在tmux 1.7之后可以这么配置:

# 当tmux看到每微秒2行以上的更新时 (缺省是每微秒250行,这个缺省值我觉得太大了)
set-window-option -g c0-change-trigger 2
# 就停止连续更新当前的window, 改为每30毫秒刷新一次 (缺省是每100微秒刷新,靠,太快了吧)
set-window-option -g c0-change-interval 30000

实验下来,这样就不太会发生由于一个程序输出太快导致拖死tmux的情况了。

2013/2/23 Chaos Eternal <chaose...@shlug.org>:

依云

unread,
Aug 9, 2013, 10:57:07 AM8/9/13
to sh...@googlegroups.com
On Fri, Aug 09, 2013 at 08:14:48PM +0800, Chaos Eternal wrote:
> 自己挖自己的:
>
> 在tmux 1.7之后可以这么配置:
>
> # 当tmux看到每微秒2行以上的更新时 (缺省是每微秒250行,这个缺省值我觉得太大了)
> set-window-option -g c0-change-trigger 2
> # 就停止连续更新当前的window, 改为每30毫秒刷新一次 (缺省是每100微秒刷新,靠,太快了吧)
> set-window-option -g c0-change-interval 30000
>
> 实验下来,这样就不太会发生由于一个程序输出太快导致拖死tmux的情况了。

用上了,好像有效果。

顺便问一句,如何查看指定选项的当前值呢?

Jiajun Wang

unread,
Aug 9, 2013, 11:13:31 AM8/9/13
to Shanghai Linux User Group
在 2013年8月9日下午10:57,依云 <lily...@gmail.com> 写道:
> 顺便问一句,如何查看指定选项的当前值呢?

show-options,具体的 man 一下。

--
Regards,
Wang Jiajun

依云

unread,
Aug 9, 2013, 12:23:34 PM8/9/13
to sh...@googlegroups.com
On Fri, Aug 09, 2013 at 11:13:31PM +0800, Jiajun Wang wrote:
> 在 2013年8月9日下午10:57,依云 <lily...@gmail.com> 写道:
> > 顺便问一句,如何查看指定选项的当前值呢?
>
> show-options,具体的 man 一下。

好用!谢谢!

苏沛

unread,
Aug 13, 2013, 10:15:48 PM8/13/13
to sh...@googlegroups.com
我来歪楼的:昨天就被tmux大大坑了一把。 在tmux做输出重定向貌似会阻塞程序的。 T T




--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out



--
苏沛

Chaos Eternal

unread,
Aug 14, 2013, 4:21:43 AM8/14/13
to sh...@googlegroups.com
show me the code!!!!!

2013/8/14 苏沛 <sill...@gmail.com>:

苏沛

unread,
Aug 14, 2013, 7:41:05 AM8/14/13
to sh...@googlegroups.com
代码估计不能show给你看。
大概是这样的,
1. 我在一个程序有大量logging到 stderr.
    中途会有数据库操作和http请求。

2. 用 python my_spider.py  2>log_file 把日志临时写写入文件。
3. 执行了一段时间之后,会发现程序停住了,没有任何异常


我判断这是tmux阻塞的原因是
1. http请求超时都会抛异常的。
2. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631984
3. 在tmux之外做相同的操作没有问题

是不是数据库操作阻塞了,我不敢有把握,我没有看过底层代码。这种可能性应该比较低。
不过这种情况比较难重现,我是跑了两个多小时才出现程序「不动了」。所以我以后还会继续看看。


2013/8/14 Chaos Eternal <chaose...@shlug.org>



--
苏沛

依云

unread,
Aug 14, 2013, 12:08:02 PM8/14/13
to sh...@googlegroups.com
On Wed, Aug 14, 2013 at 07:41:05PM +0800, 苏沛 wrote:
> 代码估计不能show给你看。
> 大概是这样的,
> 1. 我在一个程序有大量logging到 stderr.
> 中途会有数据库操作和http请求。
>
> 2. 用 python my_spider.py 2>log_file 把日志临时写写入文件。
> 3. 执行了一段时间之后,会发现程序停住了,没有任何异常
>
>
> 我判断这是tmux阻塞的原因是
> 1. http请求超时都会抛异常的。
> 2. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631984
> 3. 在tmux之外做相同的操作没有问题

1 和 3 与 tmux 没什么关系。你也说了很难重现,谁知道是不是你尝试的次数少
了只有在 tmux 里那次遇到了呢?

2 是说重定向 tmux 程序自己会有问题,和你在 tmux 里跑的程序不一样。

> 是不是数据库操作阻塞了,我不敢有把握,我没有看过底层代码。这种可能性应该比较低。
> 不过这种情况比较难重现,我是跑了两个多小时才出现程序「不动了」。所以我以后还会继续看看。

strace it or gdb it!

苏沛

unread,
Aug 14, 2013, 9:49:02 PM8/14/13
to sh...@googlegroups.com
to 依云。 有道理,我会再看看的。 2 我看得太急,理解错了。


2013/8/15 依云 <lily...@gmail.com>
--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out





--
苏沛

caojun

unread,
Aug 15, 2013, 4:35:37 AM8/15/13
to shlug
 iterm2 + tmux + powerline 配置基本没改,CTRL + b 和其他不冲突,接受了,没改成CTRL + a

Gene Wu

unread,
Aug 15, 2013, 7:49:34 AM8/15/13
to SHLUG

I am using ctrl-\

send from android
Gene

Reply all
Reply to author
Forward
0 new messages