1, c=clc=clear
2, tmux
bind -n C-v split-window -h bind -n C-M-v split-window bind -n C-h select-pane -L bind -n C-j select-pane -D bind -n C-k select-pane -U bind -n C-l select-pane -R bind -n C-t new-window bind -n M-Pageup previous-window bind -n M-Pagedown next-window bind -n C-Space copy-mode bind p paste-buffer bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi y send-keys -X copy-selection bind-key -T copy-mode-vi r send-keys -X rectangle-toggle set -g status-bg black set -g status-fg white set -g window-status-current-bg white set -g window-status-current-fg black set -g window-status-current-attr bold set -g status-interval 60 set -g status-left-length 30 set -g status-left '' set -g status-right '#[fg=white]%H:%M#[default] #h' set-option -g default-shell /bin/zsh setw -g mode-keys vi unbind C-b set -g prefix C-a
3, guake
4, nvim
5, ~/.nvimrc
"########## general settings ########## set nu set cursorline set smartcase set ignorecase set showmatch set clipboard+=unnamedplus "set list "set listchars=tab:>~,trail:. "########## indentation s########## set shiftwidth=4 set softtabstop=4 set tabstop=4 set expandtab set breakindent set smartindent set nofoldenable set colorcolumn=80 set foldmethod=manual filetype plugin on "########## plugins s########## call plug#begin('~/.vim/plugged') "Plug 'flomotlik/vim-livereload' "Plug 'jaxbot/browserlink.vim' "Plug 'Yggdroot/indentLine' Plug 'mileszs/ack.vim' if executable('ag') let g:ackprg = 'ag --vimgrep' endif "command Todo Ack! 'TODO|FIXME|CHANGED|BUG|HACK' "command Debug Ack! 'NOTE|INFO|IDEA' Plug 'Konfekt/vim-alias' Plug 'tpope/vim-vinegar' Plug 'ap/vim-buftabline' Plug 'tpope/vim-commentary' call plug#end() " "########## auto commands s########## " " " " "########## custom mappings s########## "let g:mapleader="\<Space>" imap <A-j> <Esc>j imap <A-k> <Esc>k imap <A-h> <Esc>h imap <A-l> <Esc>l map <C-n> :bn<CR> map <C-m> :bp<CR> au BufWinLeave * silent! mkview au BufWinEnter * silent! loadview map <Up> <C-y> map <Down> <C-e> map g1 1gt map g2 2gt noremap <C-u> :1b<CR> noremap <C-i> :2b<CR> noremap <C-o> :3b<CR> noremap <C-p> :4b<CR> "noremap <C-n> :silent! tabnew<CR> map :conf :source $MYVIMRC<CR> let g:netrw_liststyle = 3 let g:netrw_banner = 0 function! MakeSession() let b:sessiondir = $HOME . "/.vim/sessions" . getcwd() if (filewritable(b:sessiondir) != 2) exe 'silent !mkdir -p ' b:sessiondir redraw! endif let b:filename = b:sessiondir . '/session.vim' exe "mksession! " . b:filename endfunction function! LoadSession() let b:sessiondir = $HOME . "/.vim/sessions" . getcwd() let b:sessionfile = b:sessiondir . "/session.vim" if (filereadable(b:sessionfile)) exe 'source ' b:sessionfile else echo "No session loaded." endif endfunction " Adding automatons for when entering or leaving Vim "au VimEnter * nested :call LoadSession() "au VimLeave * :call MakeSession()
6, vi ~/.config/nvim/init.vim
source ~/.nvimrc
7, vi /etc/crontab
8, /etc/shadowsocks/config.json
9, zsh
~/.bashrc : exec zsh
10, vi ~/.zshrc
export GOPATH=/opt/go export JAVA_HOME="/usr/local/jre-10.0.2" export HOME="/home/gkxk" export PATH="$PATH:/opt/pycharm/bin/:/home/gkxk/repo/ST/000-bin/:/home/gkxk/repo/ST/000-bin/subs/:$HOME/Android/Sdk/tool:$HOME/Android/Sdk/platform-tools:$JAVA_HOME:$JAVA_HOME/lib:$JAVA_HOME/bin:/opt/blender:/opt/appimages:$GOPATH:/opt/genymobile/genymotion" export http_proxy=http://127.0.0.1:8118 export https_proxy=http://127.0.0.1:8118 export gkxkpypath="/usr/local/bin/gkxk/pypackages" export PYTHONPATH="$PYTHONPATH:$gkxkpypath" alias adbtext="adb -s 192.168.0.101:5555 shell input text" source ~/zshrc.zsh export EDITOR="nvim" [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh alias putClip="ftp -n < ~/app/.configs/putClip.txt" alias getClip="ftp -n < ~/app/.configs/getClip.txt" alias vi=nvim alias vim=nvim alias emulator="home/gkxk/Android/Sdk/emulator/emulator" alias clc="clear" alias c="clear" alias git="hub" alias chrome=google-chrome git config --global http.postBuffer 524288000 gsettings set org.gnome.shell.extensions.dash-to-dock hot-keys false alias n=nnn alias sudo="sudo env PATH=$PATH" # bin_alias alias sv="019-sshvultr" alias sshvultr="019-sshvultr" alias chm="001-chm" alias uploadDir="002-uploadDir" alias addMark="003-addMark" alias scpFile="006-scpFile" alias chcode="009-chcode" alias rename="014-rename" function go_to_project() { cd $(fuzzy-repo-finder --projectRoots "${HOME}/repo/ST,${HOME}/repo/ST/000-bin" $@) } alias g='go_to_project'
11, 韦易笑的zsh配置
https://raw.githubusercontent.com/skywind3000/vim/master/etc/zshrc.zsh
12, 目录结构
~/repo
~/repo/ST
~/repo/storage
Android app bin 'Calibre Library' Desktop Documents Downloads Mail Music node_modules nohup.out null opt Pictures Projects repo share snap Steam untitled.blend1 Videos 'VirtualBox VMs' WebstormProjects zshrc.zsh
13, ~/repo/ST/000-bin:
. ├── matrix ├── matrixCY ├── matrixJP ├── matrixJPCY ├── reader.py └── subs ├── 001-chm ├── 002-uploadDir ├── 003-addMark ├── 004-msgcli ├── 005-coding ├── 006-scpFile ├── 007-cheat ├── 008-gcli ├── 009-chcode ├── 010-regPic ├── 011-game ├── 012-readfun ├── 013-ycy ├── 014-rename ├── 015-.idea │ ├── inspectionProfiles │ ├── misc.xml │ ├── modules.xml │ ├── ST.iml │ └── workspace.xml ├── 016-clickOnce ├── 017-daily.py ├── 018-diaryCreate └── 019-sshvultr
14, ~/repo/ST
000-bin 008-game 016-CVs 024-cli 001-soundmix 009-ycy 017-C51 025-matrixlike_shell_Animation 002-bt 010-note 018-html_player_server awesome-python-login-model 003-pycharmHack 011-hazmat 019-paper index.txt 004-NodeOS 012-deepin-scrot 020-deepin-movie pm2s 005-wenku 013-math 021-ngrokDL 006-Counting-people-video-master 014-Archived 022-cloth 007-gitit 015-sxlgkxk.github.io 023-mi
15, ~/repo/storage
% ls storage 333.jpg a.jpg IMG_20190305_162444.jpg IMG_20190305_162449.jpg IMG_20190305_162456.jpg IMG_20190305_162459.jpg mouse.txt num.jpg