mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt tmux.conf
This commit is contained in:
parent
a9f269daaa
commit
7197340faa
@ -10,4 +10,4 @@ if [ -f ~/.ish/plug.sh ] && source ~/.ish/plug.sh; then
|
||||
fi
|
||||
|
||||
[ -f etc/local.sh ] && source etc/local.sh
|
||||
export PATH=$PWD/bin:$PATH
|
||||
# export PATH=$PWD/bin:$PWD/usr/local/go/bin:$PATH
|
||||
|
@ -1,10 +1,6 @@
|
||||
set -g mouse on
|
||||
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-u display-panes "move-pane -v -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 V split-window -f -h -c "#{pane_current_path}"
|
||||
|
||||
bind s choose-tree -u
|
||||
bin m choose-tree -suw -c "swap-window -t %%"
|
||||
bind -t vi-copy c copy-selection
|
||||
bind -t vi-copy Space begin-selection
|
||||
bind -t vi-copy MouseDragEnd1Pane copy-selection -x
|
||||
bind -t vi-copy C-c copy-selection -x
|
||||
bind C-s copy-mode -e
|
||||
|
||||
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
|
||||
|
@ -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"
|
||||
# }}}
|
||||
# 窗口管理{{{
|
||||
@ -48,6 +49,7 @@ bind c new-window
|
||||
bind e command-prompt -p "window new name:" "rename-window '%%'"
|
||||
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 n next-window
|
||||
bind o last-window
|
||||
@ -55,11 +57,9 @@ bind o last-window
|
||||
# 面板管理{{{
|
||||
bind i display-panes
|
||||
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 v split-window -h
|
||||
bind u split-window
|
||||
|
||||
bind h select-pane -L
|
||||
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-j command-prompt -p "size:" "resize-pane -D %%"
|
||||
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
|
||||
@ -82,10 +83,17 @@ bind \; paste-buffer
|
||||
bind r choose-buffer
|
||||
bind a paste-buffer
|
||||
|
||||
bind -t vi-copy c copy-selection
|
||||
bind -t vi-copy Space begin-selection
|
||||
# }}}
|
||||
# 命令管理{{{
|
||||
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"
|
||||
@ -106,3 +114,4 @@ if-shell "[ -e ~/.tmux_local ]" "source-file ~/.tmux_local"
|
||||
# set -g pane-active-border-bg black
|
||||
# set -g display-panes-active-colour white
|
||||
# set -g display-panes-colour white
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
export ZSH=$HOME/.oh-my-zsh
|
||||
|
||||
ZSH_THEME="robbyrussell"
|
||||
@ -27,4 +29,4 @@ if [ -f ~/.ish/plug.sh ] && source ~/.ish/plug.sh; then
|
||||
fi
|
||||
|
||||
[ -f etc/local.sh ] && source etc/local.sh
|
||||
export PATH=$PWD/bin:$PATH
|
||||
# export PATH=$PWD/bin:$PWD/usr/local/go/bin:$PATH
|
||||
|
@ -35,6 +35,8 @@
|
||||
# load
|
||||
|
||||
~ssh
|
||||
listen :9030 &
|
||||
|
||||
source etc/local.shy
|
||||
target web.code.pprof
|
||||
target web.chat.fyne.hi
|
||||
|
@ -72,5 +72,3 @@ ish_miss_prepare_vim
|
||||
|
||||
make
|
||||
ish_miss_prepare_session miss
|
||||
export PATH=$PWD/bin:$PWD/usr/local/bin:$PWD/usr/local/go/bin:$PATH
|
||||
|
||||
|
@ -2,6 +2,7 @@ title "contexts"
|
||||
premenu
|
||||
|
||||
field "ssh" ssh.dial
|
||||
field "ssh" ssh.public
|
||||
|
||||
chapter "实践"
|
||||
label "实践" `
|
||||
@ -35,6 +36,13 @@ chapter "理论"
|
||||
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"
|
||||
refer `
|
||||
艺术字 http://www.akuziti.com/
|
||||
|
Loading…
x
Reference in New Issue
Block a user