bind -r k select-pane -U # 绑定k为↑ bind -r j select-pane -D # 绑定j为↓ bind -r h select-pane -L # 绑定h为← bind -r l select-pane -R # 绑定l为→ bind -r ^k resizep -U 5 # 绑定Ctrl+k为往↑调整面板边缘10个单元格 bind -r ^j resizep -D 5 # 绑定Ctrl+j为往↓调整面板边缘10个单元格 bind -r ^h resizep -L 5 # 绑定Ctrl+h为往←调整面板边缘10个单元格 bind -r ^l resizep -R 5 # 绑定Ctrl+l为往→调整面板边缘10个单元格 run-shell ~/.tmux/tmux-resurrect/resurrect.tmux bind -r V copy-mode # 绑定Ctrl+l为往→调整面板边缘10个单元格 bind-key -T copy-mode v send -X begin-selection # default is <space> bind-key -T copy-mode V send -X select-line bind-key -T copy-mode C-v send -X rectangle-toggle # default is C-v, or R in copy-mode (non-vi) bind-key -T copy-mode y send -X copy-pipe-and-cancel 'xclip -selection clipboard -in' bind p paste-buffer # default ]
#!/bin/bash do=$1 pod=$2 t= if [[ $do == "e" ]]; then do=exec t="-it bash" fi if [[ $do == "l" ]]; then do=logs fi if [[ $do == "d" ]]; then do="delete pods" fi if [[ $do == "de" ]]; then do="get pods" t="-o yaml" fi echo $do podname=`kubectl get pods | grep ${pod} | grep Running | head -n 1 | awk '{print $1}'` echo $podname echo "kubectl ${do}${podname}${t}$3$4$5$6" kubectl ${do} ${podname} ${t} $3 $4 $5 $6
# git alias gs='git status ' alias ga='git add ' # usage: gc 'comment info' alias gc='git commit -m ' alias gd='git diff ' alias gsh='git show ' alias grm='git rm ' alias gck='git checkout ' alias gps='git push origin ' alias gpl='git pull origin ' alias gpl='git branch | grep \* | cut -d " " -f 2 | xargs git pull origin ' alias grs='git reset ' alias gl='git log ' alias gb='git branch ' alias gmg='git merge ' alias gst='git stash ' alias gf='git fetch' alias grollback="gl | grep commit | head -n 1 | awk '{print \$2}' | xargs -I {} git reset --hard {}" alias u='gck online gb -D develop gb -D master git fetch gck develop gck master ' # other alias ll='ls -al' alias ip='ifconfig | grep 172' # docker alias de='docker exec -it ' alias dp='docker ps' alias dpa='docker ps -a' alias di='docker images' alias drmi='docker rmi ' alias drm='docker rm ' alias dr='docker run ' alias dk='docker kill ' # k8s alias k=kubectl; alias kgpw="kubectl get pods -o wide "; alias kgpa="kubectl get pods -A "; unset HISTSIZE; alias di="docker images"; alias dp="docker ps"; alias dpa="docker ps -a"; alias drm="docker rm"; alias drmi="docker rmi"