1
0
forked from x/ContextOS

opt tmux.conf

This commit is contained in:
shaoying 2020-09-01 09:24:04 +08:00
parent a9f269daaa
commit 7197340faa
7 changed files with 30 additions and 21 deletions

View File

@ -10,4 +10,4 @@ if [ -f ~/.ish/plug.sh ] && source ~/.ish/plug.sh; then
fi fi
[ -f etc/local.sh ] && source etc/local.sh [ -f etc/local.sh ] && source etc/local.sh
export PATH=$PWD/bin:$PATH # export PATH=$PWD/bin:$PWD/usr/local/go/bin:$PATH

View File

@ -1,10 +1,6 @@
set -g mouse on set -g mouse on
set -gw window-status-last-style "bg=cyan" set -gw window-status-last-style "bg=cyan"
bind C-s copy-mode -e
bind -t vi-copy C-c copy-selection -x
bind -t vi-copy MouseDragEnd1Pane copy-selection -x
bind C-m display-panes "swap-pane -t %%" bind C-m display-panes "swap-pane -t %%"
bind C-u display-panes "move-pane -v -t %%" bind C-u display-panes "move-pane -v -t %%"
bind C-v display-panes "move-pane -h -t %%" bind C-v display-panes "move-pane -h -t %%"
@ -14,13 +10,7 @@ bind v split-window -h -c "#{pane_current_path}"
bind U split-window -f -c "#{pane_current_path}" bind U split-window -f -c "#{pane_current_path}"
bind V split-window -f -h -c "#{pane_current_path}" bind V split-window -f -h -c "#{pane_current_path}"
bind s choose-tree -u bind -t vi-copy MouseDragEnd1Pane copy-selection -x
bin m choose-tree -suw -c "swap-window -t %%" bind -t vi-copy C-c copy-selection -x
bind -t vi-copy c copy-selection bind C-s copy-mode -e
bind -t vi-copy Space begin-selection
bind -t vi-edit C-p history-up
bind -t vi-edit C-n history-down
bind -t vi-edit C-f cursor-right
bind -t vi-edit C-b cursor-left
bind -t vi-edit C-j enter

View File

@ -40,6 +40,7 @@ set -gw window-status-current-format "#[bg=red fg=white]\ [#I:#W.#{pane_index}#F
# }}} # }}}
# 会话管理{{{ # 会话管理{{{
bind s choose-tree -u
bind q confirm-before "detach-client" bind q confirm-before "detach-client"
# }}} # }}}
# 窗口管理{{{ # 窗口管理{{{
@ -48,6 +49,7 @@ bind c new-window
bind e command-prompt -p "window new name:" "rename-window '%%'" bind e command-prompt -p "window new name:" "rename-window '%%'"
bind B command-prompt -p "target window:" "join-pane -v -t %%" bind B command-prompt -p "target window:" "join-pane -v -t %%"
bind m choose-tree -suw -c "swap-window -t %%"
bind p previous-window bind p previous-window
bind n next-window bind n next-window
bind o last-window bind o last-window
@ -55,11 +57,9 @@ bind o last-window
# 面板管理{{{ # 面板管理{{{
bind i display-panes bind i display-panes
bind x confirm-before -p "kill-pane #P? (y/n)" kill-pane bind x confirm-before -p "kill-pane #P? (y/n)" kill-pane
bind C-o confirm-before -p "kill all other pane(y/n)?" "kill-pane -a"
bind u split-window
bind v split-window -h
bind z resize-pane -Z bind z resize-pane -Z
bind v split-window -h
bind u split-window
bind h select-pane -L bind h select-pane -L
bind l select-pane -R bind l select-pane -R
@ -73,6 +73,7 @@ bind C-h command-prompt -p "size:" "resize-pane -L %%"
bind C-l command-prompt -p "size:" "resize-pane -R %%" bind C-l command-prompt -p "size:" "resize-pane -R %%"
bind C-j command-prompt -p "size:" "resize-pane -D %%" bind C-j command-prompt -p "size:" "resize-pane -D %%"
bind C-k command-prompt -p "size:" "resize-pane -U %%" bind C-k command-prompt -p "size:" "resize-pane -U %%"
bind C-o confirm-before -p "kill all other pane(y/n)?" "kill-pane -a"
# }}} # }}}
# 缓存管理{{{ # 缓存管理{{{
bind C-s copy-mode bind C-s copy-mode
@ -82,10 +83,17 @@ bind \; paste-buffer
bind r choose-buffer bind r choose-buffer
bind a paste-buffer bind a paste-buffer
bind -t vi-copy c copy-selection
bind -t vi-copy Space begin-selection
# }}} # }}}
# 命令管理{{{ # 命令管理{{{
bind Space command-prompt bind Space command-prompt
bind -t vi-edit C-p history-up
bind -t vi-edit C-n history-down
bind -t vi-edit C-f cursor-right
bind -t vi-edit C-b cursor-left
bind -t vi-edit C-j enter
# }}} # }}}
if-shell "[ -e ~/.tmux_local ]" "source-file ~/.tmux_local" if-shell "[ -e ~/.tmux_local ]" "source-file ~/.tmux_local"
@ -106,3 +114,4 @@ if-shell "[ -e ~/.tmux_local ]" "source-file ~/.tmux_local"
# set -g pane-active-border-bg black # set -g pane-active-border-bg black
# set -g display-panes-active-colour white # set -g display-panes-active-colour white
# set -g display-panes-colour white # set -g display-panes-colour white

View File

@ -1,3 +1,5 @@
#!/bin/sh
export ZSH=$HOME/.oh-my-zsh export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="robbyrussell" ZSH_THEME="robbyrussell"
@ -27,4 +29,4 @@ if [ -f ~/.ish/plug.sh ] && source ~/.ish/plug.sh; then
fi fi
[ -f etc/local.sh ] && source etc/local.sh [ -f etc/local.sh ] && source etc/local.sh
export PATH=$PWD/bin:$PATH # export PATH=$PWD/bin:$PWD/usr/local/go/bin:$PATH

View File

@ -35,6 +35,8 @@
# load # load
~ssh ~ssh
listen :9030 &
source etc/local.shy source etc/local.shy
target web.code.pprof target web.code.pprof
target web.chat.fyne.hi target web.chat.fyne.hi

View File

@ -72,5 +72,3 @@ ish_miss_prepare_vim
make make
ish_miss_prepare_session miss ish_miss_prepare_session miss
export PATH=$PWD/bin:$PWD/usr/local/bin:$PWD/usr/local/go/bin:$PATH

View File

@ -2,6 +2,7 @@ title "contexts"
premenu premenu
field "ssh" ssh.dial field "ssh" ssh.dial
field "ssh" ssh.public
chapter "实践" chapter "实践"
label "实践" ` label "实践" `
@ -35,6 +36,13 @@ chapter "理论"
source usr/learning/自然/编程/数据结构.shy source usr/learning/自然/编程/数据结构.shy
source usr/learning/自然/编程/设计模式.shy source usr/learning/自然/编程/设计模式.shy
chapter "ssh"
refer `
官网 http://www.openssh.com/
源码 https://github.com/openssh/openssh-portable
文档 https://man.openbsd.org/ssh
`
chapter "Logo" chapter "Logo"
refer ` refer `
艺术字 http://www.akuziti.com/ 艺术字 http://www.akuziti.com/