diff --git a/etc/conf/bashrc b/etc/conf/bashrc index 7dd5a004..0180c574 100644 --- a/etc/conf/bashrc +++ b/etc/conf/bashrc @@ -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 diff --git a/etc/conf/tmux-2.1.conf b/etc/conf/tmux-2.1.conf index 7829f77c..412efd2c 100644 --- a/etc/conf/tmux-2.1.conf +++ b/etc/conf/tmux-2.1.conf @@ -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 diff --git a/etc/conf/tmux.conf b/etc/conf/tmux.conf index cf65708b..4fe49eca 100644 --- a/etc/conf/tmux.conf +++ b/etc/conf/tmux.conf @@ -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 + diff --git a/etc/conf/zshrc b/etc/conf/zshrc index cd40351e..3910c132 100644 --- a/etc/conf/zshrc +++ b/etc/conf/zshrc @@ -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 diff --git a/etc/init.shy b/etc/init.shy index eb9af316..77d29114 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -35,6 +35,8 @@ # load ~ssh + listen :9030 & + source etc/local.shy target web.code.pprof target web.chat.fyne.hi diff --git a/etc/miss.sh b/etc/miss.sh index 12aaa759..6b73b179 100644 --- a/etc/miss.sh +++ b/etc/miss.sh @@ -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 - diff --git a/src/main.shy b/src/main.shy index e584042e..0a35449c 100644 --- a/src/main.shy +++ b/src/main.shy @@ -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/