├── .bash_aliases ├── .bashrc ├── .config └── terminator │ └── config ├── .devrc.sh ├── .dircolors ├── .gitconfig ├── .myclirc ├── .pip └── pip.conf ├── .ssh ├── config ├── id_rsa ├── id_rsa.pub ├── id_rsa_github ├── id_rsa_github.pub ├── id_rsa_gitlib └── id_rsa_gitlib.pub ├── .tmux.conf ├── .vimrc-for-server ├── .zshrc ├── README.md └── setup.sh /.bash_aliases: -------------------------------------------------------------------------------- 1 | #alias for cnpm 2 | alias cnpm="npm --registry=https://registry.npm.taobao.org \ 3 | --cache=$HOME/.npm/.cache/cnpm \ 4 | --disturl=https://npm.taobao.org/dist \ 5 | --userconfig=$HOME/.cnpmrc" 6 | 7 | # This loads nvm 8 | export NVM_DIR="/home/jing/.nvm" 9 | [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" 10 | 11 | # init develop environment variable 12 | test -f ~/.devrc.sh && source ~/.devrc.sh 13 | 14 | # develop database 15 | alias dev-mycli="mycli -h ${DEV_MYSQL_HOST} -P${DEV_MYSQL_PORT} -u${DEV_MYSQL_USER} -p${DEV_MYSQL_PASSWORD} ${DEV_MYSQL_DATABASE}" 16 | 17 | alias ag='ag --color-match "1;31"' -------------------------------------------------------------------------------- /.bashrc: -------------------------------------------------------------------------------- 1 | # ~/.bashrc: executed by bash(1) for non-login shells. 2 | # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) 3 | # for examples 4 | 5 | # If not running interactively, don't do anything 6 | case $- in 7 | *i*) ;; 8 | *) return;; 9 | esac 10 | 11 | # don't put duplicate lines or lines starting with space in the history. 12 | # See bash(1) for more options 13 | HISTCONTROL=ignoreboth 14 | 15 | # append to the history file, don't overwrite it 16 | shopt -s histappend 17 | 18 | # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) 19 | HISTSIZE=1000 20 | HISTFILESIZE=2000 21 | 22 | # check the window size after each command and, if necessary, 23 | # update the values of LINES and COLUMNS. 24 | shopt -s checkwinsize 25 | 26 | # If set, the pattern "**" used in a pathname expansion context will 27 | # match all files and zero or more directories and subdirectories. 28 | #shopt -s globstar 29 | 30 | # make less more friendly for non-text input files, see lesspipe(1) 31 | [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" 32 | 33 | # set variable identifying the chroot you work in (used in the prompt below) 34 | if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then 35 | debian_chroot=$(cat /etc/debian_chroot) 36 | fi 37 | 38 | # set a fancy prompt (non-color, unless we know we "want" color) 39 | case "$TERM" in 40 | xterm|xterm-color|*-256color) color_prompt=yes;; 41 | esac 42 | 43 | # uncomment for a colored prompt, if the terminal has the capability; turned 44 | # off by default to not distract the user: the focus in a terminal window 45 | # should be on the output of commands, not on the prompt 46 | #force_color_prompt=yes 47 | 48 | if [ -n "$force_color_prompt" ]; then 49 | if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then 50 | # We have color support; assume it's compliant with Ecma-48 51 | # (ISO/IEC-6429). (Lack of such support is extremely rare, and such 52 | # a case would tend to support setf rather than setaf.) 53 | color_prompt=yes 54 | else 55 | color_prompt= 56 | fi 57 | fi 58 | 59 | if [ "$color_prompt" = yes ]; then 60 | if [[ ${EUID} == 0 ]] ; then 61 | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] ' 62 | else 63 | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\] ' 64 | fi 65 | else 66 | PS1='${debian_chroot:+($debian_chroot)}\u@\h \w \$ ' 67 | fi 68 | unset color_prompt force_color_prompt 69 | 70 | # If this is an xterm set the title to user@host:dir 71 | case "$TERM" in 72 | xterm*|rxvt*) 73 | PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h \w\a\]$PS1" 74 | ;; 75 | *) 76 | ;; 77 | esac 78 | 79 | # enable color support of ls and also add handy aliases 80 | if [ -x /usr/bin/dircolors ]; then 81 | test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 82 | alias ls='ls --color=auto' 83 | #alias dir='dir --color=auto' 84 | #alias vdir='vdir --color=auto' 85 | 86 | alias grep='grep --color=auto' 87 | alias fgrep='fgrep --color=auto' 88 | alias egrep='egrep --color=auto' 89 | fi 90 | 91 | # colored GCC warnings and errors 92 | #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 93 | 94 | # some more ls aliases 95 | alias ll='ls -alF' 96 | alias la='ls -A' 97 | alias l='ls -CF' 98 | 99 | # Add an "alert" alias for long running commands. Use like so: 100 | # sleep 10; alert 101 | alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' 102 | 103 | # Alias definitions. 104 | # You may want to put all your additions into a separate file like 105 | # ~/.bash_aliases, instead of adding them here directly. 106 | # See /usr/share/doc/bash-doc/examples in the bash-doc package. 107 | 108 | if [ -f ~/.bash_aliases ]; then 109 | . ~/.bash_aliases 110 | fi 111 | 112 | # enable programmable completion features (you don't need to enable 113 | # this, if it's already enabled in /etc/bash.bashrc and /etc/profile 114 | # sources /etc/bash.bashrc). 115 | if ! shopt -oq posix; then 116 | if [ -f /usr/share/bash-completion/bash_completion ]; then 117 | . /usr/share/bash-completion/bash_completion 118 | elif [ -f /etc/bash_completion ]; then 119 | . /etc/bash_completion 120 | fi 121 | fi 122 | 123 | if [ -x /usr/bin/mint-fortune ]; then 124 | /usr/bin/mint-fortune 125 | fi 126 | 127 | # added by travis gem 128 | [ -f /home/jing/.travis/travis.sh ] && source /home/jing/.travis/travis.sh 129 | -------------------------------------------------------------------------------- /.config/terminator/config: -------------------------------------------------------------------------------- 1 | [global_config] 2 | always_split_with_profile = True 3 | enabled_plugins = CustomCommandsMenu, InactivityWatch, ActivityWatch, TerminalShot, LaunchpadCodeURLHandler, APTURLHandler, Logger, MavenPluginURLHandler, LaunchpadBugURLHandler 4 | focus = system 5 | geometry_hinting = False 6 | inactive_color_offset = 1.0 7 | scroll_tabbar = True 8 | title_inactive_bg_color = "#323435" 9 | title_transmit_bg_color = "#9b7e7f" 10 | [keybindings] 11 | [layouts] 12 | [[default]] 13 | [[[child1]]] 14 | parent = window0 15 | profile = default 16 | type = Terminal 17 | [[[window0]]] 18 | parent = "" 19 | type = Window 20 | [plugins] 21 | [profiles] 22 | [[default]] 23 | background_color = "#444444" 24 | background_darkness = 1.23 25 | background_image = None 26 | copy_on_selection = True 27 | cursor_color = "#ededed" 28 | exit_action = hold 29 | font = Ubuntu Mono derivative Powerline 11 30 | foreground_color = "#ffffff" 31 | palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3" 32 | scrollback_infinite = True 33 | scrollback_lines = 10000 34 | scrollbar_position = hidden 35 | show_titlebar = False 36 | use_system_font = False 37 | -------------------------------------------------------------------------------- /.devrc.sh: -------------------------------------------------------------------------------- 1 | # mysql 2 | export DEV_MYSQL_HOST=172.16.92.32 3 | export DEV_MYSQL_PORT=3306 4 | export DEV_MYSQL_USER=root 5 | export DEV_MYSQL_PASSWORD=aaaaaa 6 | export DEV_MYSQL_DATABASE=dashboard 7 | #export DEV_MYSQL_DATABASE=nova 8 | 9 | 10 | # openstack 11 | export DEV_OPENSTACK_HOST=172.16.92.12 12 | -------------------------------------------------------------------------------- /.dircolors: -------------------------------------------------------------------------------- 1 | # Exact Solarized Light color theme for the color GNU ls utility. 2 | # Designed for dircolors (GNU coreutils) 5.97 3 | # 4 | # This simple theme was simultaneously designed for these terminal color schemes: 5 | # - Solarized dark 6 | # - Solarized light (best) 7 | # - default dark 8 | # - default light 9 | # with a slight optimization for Solarized Light. 10 | # 11 | # How the colors were selected: 12 | # - Terminal emulators often have an option typically enabled by default that makes 13 | # bold a different color. It is important to leave this option enabled so that 14 | # you can access the entire 16-color Solarized palette, and not just 8 colors. 15 | # - We favor universality over a greater number of colors. So we limit the number 16 | # of colors so that this theme will work out of the box in all terminals, 17 | # Solarized or not, dark or light. 18 | # - We choose to have the following category of files: 19 | # NORMAL & FILE, DIR, LINK, EXEC and 20 | # editable text including source, unimportant text, binary docs & multimedia source 21 | # files, viewable multimedia, archived/compressed, and unimportant non-text 22 | # - For uniqueness, we stay away from the Solarized foreground colors are -- either 23 | # base00 (brightyellow) or base0 (brightblue). However, they can be used if 24 | # you know what the bg/fg colors of your terminal are, in order to optimize the display. 25 | # - 3 different options are provided: universal, solarized dark, and solarized light. 26 | # The only difference between the universal scheme and one that's optimized for 27 | # dark/light is the color of "unimportant" files, which should blend more with the 28 | # background 29 | # - We note that blue is the hardest color to see on dark bg and yellow is the hardest 30 | # color to see on light bg (with blue being particularly bad). So we choose yellow 31 | # for multimedia files which are usually accessed in a GUI folder browser anyway. 32 | # And blue is kept for custom use of this scheme's user. 33 | # - See table below to see the assignments. 34 | 35 | 36 | # Installation instructions: 37 | # This file goes in the /etc directory, and must be world readable. 38 | # You can copy this file to .dir_colors in your $HOME directory to override 39 | # the system defaults. 40 | 41 | # COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not 42 | # pipes. 'all' adds color characters to all output. 'none' shuts colorization 43 | # off. 44 | COLOR tty 45 | 46 | # Below, there should be one TERM entry for each termtype that is colorizable 47 | TERM ansi 48 | TERM color_xterm 49 | TERM color-xterm 50 | TERM con132x25 51 | TERM con132x30 52 | TERM con132x43 53 | TERM con132x60 54 | TERM con80x25 55 | TERM con80x28 56 | TERM con80x30 57 | TERM con80x43 58 | TERM con80x50 59 | TERM con80x60 60 | TERM cons25 61 | TERM console 62 | TERM cygwin 63 | TERM dtterm 64 | TERM dvtm 65 | TERM dvtm-256color 66 | TERM Eterm 67 | TERM eterm-color 68 | TERM fbterm 69 | TERM gnome 70 | TERM gnome-256color 71 | TERM jfbterm 72 | TERM konsole 73 | TERM konsole-256color 74 | TERM kterm 75 | TERM linux 76 | TERM linux-c 77 | TERM mach-color 78 | TERM mlterm 79 | TERM nxterm 80 | TERM putty 81 | TERM putty-256color 82 | TERM rxvt 83 | TERM rxvt-256color 84 | TERM rxvt-cygwin 85 | TERM rxvt-cygwin-native 86 | TERM rxvt-unicode 87 | TERM rxvt-unicode256 88 | TERM rxvt-unicode-256color 89 | TERM screen 90 | TERM screen-16color 91 | TERM screen-16color-bce 92 | TERM screen-16color-s 93 | TERM screen-16color-bce-s 94 | TERM screen-256color 95 | TERM screen-256color-bce 96 | TERM screen-256color-s 97 | TERM screen-256color-bce-s 98 | TERM screen-256color-italic 99 | TERM screen-bce 100 | TERM screen-w 101 | TERM screen.linux 102 | TERM screen.xterm-256color 103 | TERM screen.xterm-new 104 | TERM st 105 | TERM st-meta 106 | TERM st-256color 107 | TERM st-meta-256color 108 | TERM tmux 109 | TERM tmux-256color 110 | TERM vt100 111 | TERM xterm 112 | TERM xterm-new 113 | TERM xterm-16color 114 | TERM xterm-256color 115 | TERM xterm-256color-italic 116 | TERM xterm-88color 117 | TERM xterm-color 118 | TERM xterm-debian 119 | TERM xterm-termite 120 | 121 | # EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output) 122 | EIGHTBIT 1 123 | 124 | ############################################################################# 125 | # Below are the color init strings for the basic file types. A color init 126 | # string consists of one or more of the following numeric codes: 127 | # 128 | # Attribute codes: 129 | # 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed 130 | # Text color codes: 131 | # 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white 132 | # Background color codes: 133 | # 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white 134 | # 135 | # NOTES: 136 | # - See http://www.oreilly.com/catalog/wdnut/excerpt/color_names.html 137 | # - Color combinations 138 | # ANSI Color code Solarized Notes Universal SolDark SolLight 139 | # ~~~~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~ ~~~~~~~~~ ~~~~~~~ ~~~~~~~~ 140 | # 00 none NORMAL, FILE 141 | # 30 black base02 142 | # 01;30 bright black base03 bg of SolDark 143 | # 31 red red docs & mm src 144 | # 01;31 bright red orange EXEC 145 | # 32 green green editable text 146 | # 01;32 bright green base01 unimportant text 147 | # 33 yellow yellow unclear in light bg multimedia 148 | # 01;33 bright yellow base00 fg of SolLight unimportant non-text 149 | # 34 blue blue unclear in dark bg user customized 150 | # 01;34 bright blue base0 fg in SolDark unimportant text 151 | # 35 magenta magenta LINK 152 | # 01;35 bright magenta violet archive/compressed 153 | # 36 cyan cyan DIR 154 | # 01;36 bright cyan base1 unimportant non-text 155 | # 37 white base2 156 | # 01;37 bright white base3 bg in SolLight 157 | # 05;37;41 unclear in Putty dark 158 | 159 | 160 | ### By file type 161 | 162 | # global default 163 | NORMAL 00 164 | # normal file 165 | FILE 00 166 | # directory 167 | DIR 36 168 | # XX2, XX3, XX6, and XX7 directories 169 | OTHER_WRITABLE 34;47 170 | # symbolic link 171 | LINK 35 172 | 173 | # pipe, socket, block device, character device (blue bg) 174 | FIFO 30;44 175 | SOCK 35;44 176 | DOOR 35;44 # Solaris 2.5 and later 177 | BLK 33;44 178 | CHR 37;44 179 | 180 | 181 | ############################################################################# 182 | ### By file attributes 183 | 184 | # Orphaned symlinks (blinking white on red) 185 | # Blink may or may not work (works on iTerm dark or light, and Putty dark) 186 | ORPHAN 05;37;41 187 | # ... and the files that orphaned symlinks point to (blinking white on red) 188 | MISSING 05;37;41 189 | 190 | # files with execute permission 191 | EXEC 01;31 # Unix 192 | .cmd 01;31 # Win 193 | .exe 01;31 # Win 194 | .com 01;31 # Win 195 | .bat 01;31 # Win 196 | .reg 01;31 # Win 197 | .app 01;31 # OSX 198 | 199 | ############################################################################# 200 | ### By extension 201 | 202 | # List any file extensions like '.gz' or '.tar' that you would like ls 203 | # to colorize below. Put the extension, a space, and the color init string. 204 | # (and any comments you want to add after a '#') 205 | 206 | ### Text formats 207 | 208 | # Text that we can edit with a regular editor 209 | .txt 32 210 | .org 32 211 | .md 32 212 | .mkd 32 213 | 214 | # Source text 215 | .h 32 216 | .hpp 32 217 | .c 32 218 | .C 32 219 | .cc 32 220 | .cpp 32 221 | .cxx 32 222 | .objc 32 223 | .cl 32 224 | .sh 32 225 | .bash 32 226 | .csh 32 227 | .zsh 32 228 | .el 32 229 | .vim 32 230 | .java 32 231 | .pl 32 232 | .pm 32 233 | .py 32 234 | .rb 32 235 | .hs 32 236 | .php 32 237 | .htm 32 238 | .html 32 239 | .shtml 32 240 | .erb 32 241 | .haml 32 242 | .xml 32 243 | .rdf 32 244 | .css 32 245 | .sass 32 246 | .scss 32 247 | .less 32 248 | .js 32 249 | .coffee 32 250 | .man 32 251 | .0 32 252 | .1 32 253 | .2 32 254 | .3 32 255 | .4 32 256 | .5 32 257 | .6 32 258 | .7 32 259 | .8 32 260 | .9 32 261 | .l 32 262 | .n 32 263 | .p 32 264 | .pod 32 265 | .tex 32 266 | .go 32 267 | .sql 32 268 | .csv 32 269 | .sv 32 270 | .svh 32 271 | .v 32 272 | .vh 32 273 | .vhd 32 274 | 275 | ### Multimedia formats 276 | 277 | # Image 278 | .bmp 33 279 | .cgm 33 280 | .dl 33 281 | .dvi 33 282 | .emf 33 283 | .eps 33 284 | .gif 33 285 | .jpeg 33 286 | .jpg 33 287 | .JPG 33 288 | .mng 33 289 | .pbm 33 290 | .pcx 33 291 | .pdf 33 292 | .pgm 33 293 | .png 33 294 | .PNG 33 295 | .ppm 33 296 | .pps 33 297 | .ppsx 33 298 | .ps 33 299 | .svg 33 300 | .svgz 33 301 | .tga 33 302 | .tif 33 303 | .tiff 33 304 | .xbm 33 305 | .xcf 33 306 | .xpm 33 307 | .xwd 33 308 | .xwd 33 309 | .yuv 33 310 | 311 | # Audio 312 | .aac 33 313 | .au 33 314 | .flac 33 315 | .m4a 33 316 | .mid 33 317 | .midi 33 318 | .mka 33 319 | .mp3 33 320 | .mpa 33 321 | .mpeg 33 322 | .mpg 33 323 | .ogg 33 324 | .opus 33 325 | .ra 33 326 | .wav 33 327 | 328 | # Video 329 | .anx 33 330 | .asf 33 331 | .avi 33 332 | .axv 33 333 | .flc 33 334 | .fli 33 335 | .flv 33 336 | .gl 33 337 | .m2v 33 338 | .m4v 33 339 | .mkv 33 340 | .mov 33 341 | .MOV 33 342 | .mp4 33 343 | .mp4v 33 344 | .mpeg 33 345 | .mpg 33 346 | .nuv 33 347 | .ogm 33 348 | .ogv 33 349 | .ogx 33 350 | .qt 33 351 | .rm 33 352 | .rmvb 33 353 | .swf 33 354 | .vob 33 355 | .webm 33 356 | .wmv 33 357 | 358 | ### Misc 359 | 360 | # Binary document formats and multimedia source 361 | .doc 31 362 | .docx 31 363 | .rtf 31 364 | .odt 31 365 | .dot 31 366 | .dotx 31 367 | .ott 31 368 | .xls 31 369 | .xlsx 31 370 | .ods 31 371 | .ots 31 372 | .ppt 31 373 | .pptx 31 374 | .odp 31 375 | .otp 31 376 | .fla 31 377 | .psd 31 378 | 379 | # Archives, compressed 380 | .7z 1;35 381 | .apk 1;35 382 | .arj 1;35 383 | .bin 1;35 384 | .bz 1;35 385 | .bz2 1;35 386 | .cab 1;35 # Win 387 | .deb 1;35 388 | .dmg 1;35 # OSX 389 | .gem 1;35 390 | .gz 1;35 391 | .iso 1;35 392 | .jar 1;35 393 | .msi 1;35 # Win 394 | .rar 1;35 395 | .rpm 1;35 396 | .tar 1;35 397 | .tbz 1;35 398 | .tbz2 1;35 399 | .tgz 1;35 400 | .tx 1;35 401 | .war 1;35 402 | .xpi 1;35 403 | .xz 1;35 404 | .z 1;35 405 | .Z 1;35 406 | .zip 1;35 407 | 408 | # For testing 409 | .ANSI-30-black 30 410 | .ANSI-01;30-brblack 01;30 411 | .ANSI-31-red 31 412 | .ANSI-01;31-brred 01;31 413 | .ANSI-32-green 32 414 | .ANSI-01;32-brgreen 01;32 415 | .ANSI-33-yellow 33 416 | .ANSI-01;33-bryellow 01;33 417 | .ANSI-34-blue 34 418 | .ANSI-01;34-brblue 01;34 419 | .ANSI-35-magenta 35 420 | .ANSI-01;35-brmagenta 01;35 421 | .ANSI-36-cyan 36 422 | .ANSI-01;36-brcyan 01;36 423 | .ANSI-37-white 37 424 | .ANSI-01;37-brwhite 01;37 425 | 426 | ############################################################################# 427 | # Your customizations 428 | 429 | # Unimportant text files 430 | # For universal scheme, use brightgreen 01;32 431 | # For optimal on light bg (but too prominent on dark bg), use white 01;34 432 | #.log 01;32 433 | #*~ 01;32 434 | #*# 01;32 435 | .log 01;34 436 | *~ 01;34 437 | *# 01;34 438 | 439 | # Unimportant non-text files 440 | # For universal scheme, use brightcyan 01;36 441 | # For optimal on dark bg (but too prominent on light bg), change to 01;33 442 | .bak 01;36 443 | .BAK 01;36 444 | .old 01;36 445 | .OLD 01;36 446 | .org_archive 01;36 447 | .off 01;36 448 | .OFF 01;36 449 | .dist 01;36 450 | .DIST 01;36 451 | .orig 01;36 452 | .ORIG 01;36 453 | .swp 01;36 454 | .swo 01;36 455 | *,v 01;36 456 | #.bak 01;33 457 | #.BAK 01;33 458 | #.old 01;33 459 | #.OLD 01;33 460 | #.org_archive 01;33 461 | #.off 01;33 462 | #.OFF 01;33 463 | #.dist 01;33 464 | #.DIST 01;33 465 | #.orig 01;33 466 | #.ORIG 01;33 467 | #.swp 01;33 468 | #.swo 01;33 469 | #*,v 01;33 470 | 471 | # The brightmagenta (Solarized: purple) color is free for you to use for your 472 | # custom file type 473 | .gpg 34 474 | .gpg 34 475 | .pgp 34 476 | .asc 34 477 | .3des 34 478 | .aes 34 479 | .enc 34 480 | .sqlite 34 481 | -------------------------------------------------------------------------------- /.gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | name = lijinghui 3 | email = lijinghui6@gomecloud.com 4 | [core] 5 | editor = vim 6 | autocrlf = input 7 | [alias] 8 | logm = log --no-merges --color --date=format:'%Y-%m-%d %H:%M:%S' --author='lijinghui' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate 9 | logms = log --no-merges --color --date=format:'%Y-%m-%d %H:%M:%S' --author='lijinghui' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate --stat 10 | logs = log --no-merges --color --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate 11 | logss = log --no-merges --color --graph --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Cblue %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate --stat 12 | logg = log --graph --pretty=oneline --abbrev-commit --decorate 13 | [push] 14 | default = simple 15 | [init] 16 | templatedir = /home/jing/.git-templates 17 | -------------------------------------------------------------------------------- /.myclirc: -------------------------------------------------------------------------------- 1 | # vi: ft=dosini 2 | [main] 3 | 4 | # Enables context sensitive auto-completion. If this is disabled the all 5 | # possible completions will be listed. 6 | smart_completion = True 7 | 8 | # Multi-line mode allows breaking up the sql statements into multiple lines. If 9 | # this is set to True, then the end of the statements must have a semi-colon. 10 | # If this is set to False then sql statements can't be split into multiple 11 | # lines. End of line (return) is considered as the end of the statement. 12 | multi_line = False 13 | 14 | # Destructive warning mode will alert you before executing a sql statement 15 | # that may cause harm to the database such as "drop table", "drop database" 16 | # or "shutdown". 17 | destructive_warning = True 18 | 19 | # log_file location. 20 | log_file = ~/.mycli.log 21 | 22 | # Default log level. Possible values: "CRITICAL", "ERROR", "WARNING", "INFO" 23 | # and "DEBUG". 24 | log_level = INFO 25 | 26 | # Log every query and its results to a file. Enable this by uncommenting the 27 | # line below. 28 | # audit_log = ~/.mycli-audit.log 29 | 30 | # Timing of sql statments and table rendering. 31 | timing = True 32 | 33 | # Table format. Possible values: psql, plain, simple, grid, fancy_grid, pipe, 34 | # orgtbl, rst, mediawiki, html, latex, latex_booktabs, tsv. 35 | # Recommended: psql, fancy_grid and grid. 36 | table_format = psql 37 | 38 | # Syntax Style. Possible values: manni, igor, xcode, vim, autumn, vs, rrt, 39 | # native, perldoc, borland, tango, emacs, friendly, monokai, paraiso-dark, 40 | # colorful, murphy, bw, pastie, paraiso-light, trac, default, fruity 41 | syntax_style = default 42 | 43 | # Keybindings: Possible values: emacs, vi. 44 | # Emacs mode: Ctrl-A is home, Ctrl-E is end. All emacs keybindings are available in the REPL. 45 | # When Vi mode is enabled you can use modal editing features offered by Vi in the REPL. 46 | key_bindings = vi 47 | 48 | # Enabling this option will show the suggestions in a wider menu. Thus more items are suggested. 49 | wider_completion_menu = False 50 | 51 | # MySQL prompt 52 | # \t - Product type (Percona, MySQL, Mariadb) 53 | # \u - Username 54 | # \h - Hostname of the server 55 | # \d - Database name 56 | # \n - Newline 57 | # prompt = '\t \u@\h:\d> ' 58 | prompt = '\t [\d]: ' 59 | 60 | # Custom colors for the completion menu, toolbar, etc. 61 | [colors] 62 | # Completion menus. 63 | Token.Menu.Completions.Completion.Current = 'bg:#00aaaa #000000' 64 | Token.Menu.Completions.Completion = 'bg:#008888 #ffffff' 65 | Token.Menu.Completions.MultiColumnMeta = 'bg:#aaffff #000000' 66 | Token.Menu.Completions.ProgressButton = 'bg:#003333' 67 | Token.Menu.Completions.ProgressBar = 'bg:#00aaaa' 68 | 69 | # Selected text. 70 | Token.SelectedText = '#ffffff bg:#6666aa' 71 | 72 | # Search matches. (reverse-i-search) 73 | Token.SearchMatch = '#ffffff bg:#4444aa' 74 | Token.SearchMatch.Current = '#ffffff bg:#44aa44' 75 | 76 | # The bottom toolbar. 77 | Token.Toolbar.Off = 'bg:#222222 #888888' 78 | Token.Toolbar.On = 'bg:#222222 #ffffff' 79 | 80 | # Search/arg/system toolbars. 81 | Token.Toolbar.Search = 'noinherit bold' 82 | Token.Toolbar.Search.Text = 'nobold' 83 | Token.Toolbar.System = 'noinherit bold' 84 | Token.Toolbar.Arg = 'noinherit bold' 85 | Token.Toolbar.Arg.Text = 'nobold' 86 | 87 | # Favorite queries. 88 | [favorite_queries] 89 | -------------------------------------------------------------------------------- /.pip/pip.conf: -------------------------------------------------------------------------------- 1 | [global] 2 | timeout = 6000 3 | index-url = https://pypi.douban.com/simple 4 | trusted-host = pypi.douban.com 5 | -------------------------------------------------------------------------------- /.ssh/config: -------------------------------------------------------------------------------- 1 | # gitlab 2 | Host gome-cloud 3 | # HostName 192.168.89.100:10080 4 | HostName 10.112.2.3 5 | PreferredAuthentications publickey 6 | IdentityFile ~/.ssh/id_rsa 7 | User lijinghui 8 | 9 | # github 10 | Host github.com 11 | HostName github.com 12 | PreferredAuthentications publickey 13 | IdentityFile ~/.ssh/id_rsa_github 14 | User knitmesh 15 | 16 | 17 | # my gitlab 18 | Host my_gitlib 19 | HostName 183.136.128.39:10080 20 | PreferredAuthentications publickey 21 | IdentityFile ~/.ssh/id_rsa_gitlib 22 | User jingh 23 | 24 | 25 | # Order 26 | Host * 27 | KeepAlive yes 28 | ControlMaster auto 29 | ControlPersist yes 30 | ControlPath ~/.ssh/socks/%h-%p-%r 31 | ServerAliveInterval 60 32 | ServerAliveCountMax 10 33 | 34 | StrictHostKeyChecking no 35 | UserKnownHostsFile /dev/null 36 | -------------------------------------------------------------------------------- /.ssh/id_rsa: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEowIBAAKCAQEAqHfIrCyVeL1kusbQX3/Kz8Zjv62Eaxs1YT3uH0si8VkIW003 3 | uMJkn83POmGvpxUTbZu2i2fRQ8x+HzXmv8a/vlvNQ0wKY9djRioD1Mg53QOSOi0B 4 | pKeW9fnWetemaJ3dA8ToQ2YvQ9NlLRuldBU+jrBnVzgQ04bpSkdetQqOkbI4EOlK 5 | pqzIuaPMTytE2qUdv4MHivZ87Ra/lZEKKYmXLJVhGNr3+1JrdcFf5lZo7bjYHCB7 6 | LPQtVfncA4zso0IMUlDxamNoM9nSLEtWIrlDdZXRyc0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8fo01pVOZhFSlpFKureCOa4A4t37hlk 23 | RR/wNlg7PTIg2z6ctTSZWqi3tdA81pU9VV5F6IN79RizAw6WqY4HQOQKwDb3YQ+U 24 | GCfxAoGBALFD9YfKFPIL6Htl92f5TUQTf5vGzObZ+X+J+82+6D0LNt2CgLSqwtbi 25 | DVdJbRs9e8HhQ+uYAbvL4r4pU7IsdViVwp1aFxb71h6yxk4ZTpRzurmCZRnNwz1q 26 | blELrHZmCLBw9xGIMyGZR/iM24OQaPmZdhNxRrpE0GNzacM+j9CV 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /.ssh/id_rsa.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCod8isLJV4vWS6xtBff8rPxmO/rYRrGzVhPe4fSyLxWQhbTTe4wmSfzc86Ya+nFRNtm7aLZ9FDzH4fNea/xr++W81DTApj12NGKgPUyDndA5I6LQGkp5b1+dZ616Zond0DxOhDZi9D02UtG6V0FT6OsGdXOBDThulKR161Co6RsjgQ6UqmrMi5o8xPK0TapR2/gweK9nztFr+VkQopiZcslWEY2vf7Umt1wV/mVmjtuNgcIHss9C1V+dwDjOyjQgxSUPFqY2gz2dIsS1YiuUN1ldHJzSZnte0IOKSStIYXhoUn+WGrlLk5VOmuz0GMYuApkDjWG3ij9mdTRYsCRBsN lijinghui6@gomecloud.com 2 | -------------------------------------------------------------------------------- /.ssh/id_rsa_github: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEogIBAAKCAQEAwte2gYxfq/jrMq6bndcUc17dW65SeuXa/v6uFUb+RIGQ8gOf 3 | bzheufkmJi1OEtbBiM2zYbe1MJUM7SxhUsv7muDtd08XLndHkzzo1qHvW2jtXQ3k 4 | KjPe1LQUMMXlG8Eso9bh1uDqOPgNl0nOUHrRas2XpX/CeDpFfKoky0vFfCeYw7SI 5 | 7/jSvHrndYPVqCxXiAp1Njed1E+QaInj3br1m64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Mf3oh8QdEM3Y9F16oLjFDmTbS2qXR5gOzjNQ 22 | YI4kntLKDBuFxHlQMEfudfIFq51IBIQ95RVTNFGluYwVF31OSdLlGFl+KDm0udoq 23 | nFikGnZgvc5o5wT0Qcrpm0x4ZmC5EDcBbWp72K7RZ5clhNrbsV6Dsl9YAIOqzBOV 24 | UjZLAoGAEInZfNcqe3NeIyYUiowMqE1sjBwvSb7FBEukNdUqiDwsnsrh0IsgTpgE 25 | X4tfXgYn6h6a0+89WrBhUZwSczcdQ0EpwG7GHwFusV67rZF+kLqF0r6BsbPKYDYw 26 | WbRfJj5mdUHM4nTZYtYDc/BFTaVXi/ZV1CLbC2OLkk4XRrAj2h8= 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /.ssh/id_rsa_github.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDC17aBjF+r+Osyrpud1xRzXt1brlJ65dr+/q4VRv5EgZDyA59vOF65+SYmLU4S1sGIzbNht7UwlQztLGFSy/ua4O13Txcud0eTPOjWoe9baO1dDeQqM97UtBQwxeUbwSyj1uHW4Oo4+A2XSc5QetFqzZelf8J4OkV8qiTLS8V8J5jDtIjv+NK8eud1g9WoLFeICnU2N53UT5BoiePduvWbriYoPIiZ3AQ3HHEV/7a1WwZkMRrS+MLTwyyxhbLpExh/a1FZh4eEgUlWosfuWnkDwjiDMJzNdDMGNKmDCR+TBqIDeoP+GX6CMiQObujcscuKBJVSjeVG4b+vugCFwfkR knitmesh@163.com 2 | -------------------------------------------------------------------------------- /.ssh/id_rsa_gitlib: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpAIBAAKCAQEAnfRFdg4gO4BMdJsKLTLw2rIXf86SJImju9z6/aELRIH7/Xkk 3 | hnSvFJVDH8RyidxBJfitbL7WwzugxetbfgHhiwrlAFoxUIfnQP1uR+DpidcJexm9 4 | d32UXEvXqVnMw3IvYBQYHLrU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/hqHABLXKyzX2+jBfFcin0yHAQP9lpWzBoFqrVKSjK92RgO 21 | i6HSUU2x91KgqbjJCltn2Y0CgYEAlpuPrmwHV9LpmL+5Ndo6NnnsnMVuKiJOYAIn 22 | 3ue7Eej6wE3fyeONeRvcPp73Lf3HirrFQ7E51P1k5KipKYnvFIookK3FN9gbZ9Vg 23 | QqLeuOwVED0/J/PEVyaDtvHzo6SKXkeN1zhL7k8pLSihoojLpKfOkUVaIsfk7nx+ 24 | cOyKmIsCgYAcvSElDj48csQfF6ziuxN6HTAwnOXgM+grmLe+rltphC4CROW+h3fa 25 | 4kCnDtszFAS3IemuE6hMwMYCJz5NjtHBybQ3hrttAA2bw5cEotb79gi1W/H4PPKv 26 | /+DjX2M11nzgBE8rNpNnwEnCcXOHtf6iMJLxs1OQ5UQrtcbD3x9P3A== 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /.ssh/id_rsa_gitlib.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCd9EV2DiA7gEx0mwotMvDashd/zpIkiaO73Pr9oQtEgfv9eSSGdK8UlUMfxHKJ3EEl+K1svtbDO6DF61t+AeGLCuUAWjFQh+dA/W5H4OmJ1wl7Gb13fZRcS9epWczDci9gFBgcutQb9KAb+RcY3+IaFbXQ/DvtL9kDz+AlsKoeAFN0hUQ3p2REtlQzDcMRHmmjwnJtLQF13vytsnhOgb6f03ocUGh91nPmVPatijsvGHXSaVRGHWikOSq83sQb9wfuN6Wn/GURgylwavNREJUQFvV1rf1qKEFvmfAR108Zxf1fh3zZFfdj5Qg7N/rh2Ar27SB8ufKLgsUMJT77ai8b jingh.lib@gmail.com 2 | -------------------------------------------------------------------------------- /.tmux.conf: -------------------------------------------------------------------------------- 1 | # example: /usr/share/doc/tmux/examples/ 2 | # {{{ screen-keys.conf 3 | # $Id: screen-keys.conf,v 1.7 2010/07/31 11:39:13 nicm Exp $ 4 | # 5 | # By Nicholas Marriott. Public domain. 6 | # 7 | # This configuration file binds many of the common GNU screen key bindings to 8 | # appropriate tmux key bindings. Note that for some key bindings there is no 9 | # tmux analogue and also that this set omits binding some commands available in 10 | # tmux but not in screen. 11 | # 12 | # Note this is only a selection of key bindings and they are in addition to the 13 | # normal tmux key bindings. This is intended as an example not as to be used 14 | # as-is. 15 | 16 | # Set the prefix to ^A. 17 | unbind C-b 18 | set -g prefix ^B 19 | bind b send-prefix 20 | 21 | # screen ^C c 22 | unbind ^C 23 | bind ^C new-window 24 | # bind c 25 | bind c new-window 26 | 27 | # detach ^D d 28 | unbind ^D 29 | bind ^D detach 30 | 31 | # displays * 32 | unbind * 33 | bind * list-clients 34 | 35 | # 下一个窗口 sp n 36 | unbind " " 37 | bind " " next-window 38 | unbind n 39 | bind n next-window 40 | 41 | # 上一个窗口 ^P p 42 | unbind p 43 | bind p previous-window 44 | 45 | # 回到上一个窗口 ^A 46 | unbind ^A 47 | bind ^A last-window 48 | 49 | # title A 50 | unbind A 51 | bind A command-prompt "rename-window %%" 52 | 53 | # windows ^W w 54 | unbind ^W 55 | bind ^W list-windows 56 | unbind w 57 | bind w list-windows 58 | 59 | # quit \ 60 | unbind \ 61 | bind \ confirm-before "kill-server" 62 | 63 | # kill K k 64 | unbind K 65 | bind K confirm-before "kill-window" 66 | unbind k 67 | bind k confirm-before "kill-window" 68 | 69 | # redisplay ^L l 70 | unbind ^L 71 | bind ^L refresh-client 72 | unbind l 73 | bind l refresh-client 74 | 75 | # split -v | 76 | unbind | 77 | bind | split-window 78 | 79 | # split windows like vim 80 | # vim's definition of a horizontal/vertical split is reversed from tmux's 81 | # bind s split-window -v 82 | # bind v split-window -h 83 | 84 | # 新Pane保持原来的目录,而不是跳转到HOME目录 85 | bind s split-window -v -c '#{pane_current_path}' 86 | bind ^S split-window -v -c '#{pane_current_path}' 87 | bind v split-window -h -c '#{pane_current_path}' 88 | bind ^V split-window -h -c '#{pane_current_path}' 89 | 90 | # :kB: focus up 91 | unbind Tab 92 | bind Tab select-pane -t:.+ 93 | unbind BTab 94 | bind BTab select-pane -t:.- 95 | 96 | # " windowlist 97 | unbind '"' 98 | bind '"' choose-window 99 | 100 | # move around panes with hjkl, as one would in vim after pressing ctrl-w 101 | bind h select-pane -L 102 | bind j select-pane -D 103 | bind k select-pane -U 104 | bind l select-pane -R 105 | 106 | # resize panes like vim 107 | # feel free to change the "1" to however many lines you want to resize by, only 108 | # one at a time can be slow 109 | bind < resize-pane -L 3 110 | bind > resize-pane -R 3 111 | bind - resize-pane -D 3 112 | bind + resize-pane -U 3 113 | 114 | # bind : to command-prompt like vim 115 | # this is the default in tmux already 116 | bind : command-prompt 117 | 118 | # vi-style controls for copy mode 119 | setw -g mode-keys vi 120 | 121 | # Easy config reload 122 | bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded" 123 | 124 | # Setting the delay between prefix and command. 125 | set -sg escape-time 1 126 | 127 | # Set the base index for windows to 1 instead of 0. 128 | set -g base-index 1 129 | 130 | # Set the base index for panes to 1 instead of 0. 131 | setw -g pane-base-index 1 132 | 133 | # 开始鼠标模式 134 | set-option -g mouse on 135 | 136 | # 禁用windows自动命名,主要是它会覆盖原来的名字 137 | set-option -g allow-rename off # prevent system from renaming our window 138 | 139 | # UI配置 140 | # 面板分割栏颜色 141 | set -g pane-border-fg green 142 | 143 | # 消息栏字体使用UTF-8编码 144 | # set -g status-utf8 on 145 | 146 | # 消息刷新时间为60s 147 | set -g status-interval 60 148 | 149 | # 窗口列表居中 150 | set -g status-justify left 151 | 152 | # 当其它Pane有消息的时候突出显示 153 | setw -g monitor-activity on 154 | set -g visual-activity on 155 | 156 | # 状态栏颜色 157 | #set -g status-bg black 158 | set -g status-bg colour238 159 | set -g status-fg white 160 | 161 | # 左下角 162 | #set -g status-left "#[fg=cyan,bold] #S < " # session-name 163 | set -g status-left-length 15 164 | set -g status-left '#[fg=colour245,bg=colour238 bold] ❐ #[fg=colour245,bg=colour238 bold]#S #[fg=colour245,bg=colour238]⮀ ' 165 | setw -g automatic-rename on 166 | set-window-option -g window-status-format '#[fg=colour245,bg=colour238,nobold]#I:#[fg=colour245,bg=colour238,bold]#W' 167 | set-window-option -g window-status-current-format '#[fg=white,bold]#I#[fg=white]:#[fg=white]#W#[dim]' 168 | 169 | # 右下角 170 | # set -g status-right '#[fg=green][#[fg=cyan]%Y-%m-%d#[fg=green]]' 171 | set -g status-right "#[fg=colour245,bg=colour238 bold]" 172 | 173 | # List of plugins 174 | set -g @plugin 'tmux-plugins/tpm' 175 | set -g @plugin 'tmux-plugins/tmux-sensible' 176 | 177 | # session continuum start 178 | set -g @plugin 'tmux-plugins/tmux-resurrect' 179 | set -g @plugin 'tmux-plugins/tmux-continuum' 180 | set -g @resurrect-processes 'ssh mysql redis-server npm' 181 | 182 | # 鼠标插件 183 | # set -g @plugin 'nhdaly/tmux-better-mouse-mode' 184 | 185 | # set auto save session time 186 | set -g @continuum-save-interval '10' 187 | 188 | set -g @plugin 'tmux-plugins/tmux-pain-control' 189 | 190 | # Other examples: 191 | # set -g @plugin 'github_username/plugin_name' 192 | # set -g @plugin 'git@github.com/user/plugin' 193 | # set -g @plugin 'git@bitbucket.com/user/plugin' 194 | 195 | # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) 196 | run '~/.tmux/plugins/tpm/tpm' 197 | 198 | -------------------------------------------------------------------------------- /.vimrc-for-server: -------------------------------------------------------------------------------- 1 | "========================================== 2 | " ProjectLink: https://github.com/wklken/vim-for-server 3 | " Author: wklken 4 | " Version: 0.2 5 | " Email: wklken@yeah.net 6 | " BlogPost: http://www.wklken.me 7 | " Donation: http://www.wklken.me/pages/donation.html 8 | " ReadMe: README.md 9 | " Last_modify: 2015-07-07 10 | " Desc: simple vim config for server, without any plugins. 11 | "========================================== 12 | 13 | " leader 14 | let mapleader = ',' 15 | let g:mapleader = ',' 16 | 17 | " syntax 18 | syntax on 19 | 20 | " history : how many lines of history VIM has to remember 21 | set history=2000 22 | 23 | " filetype 24 | filetype on 25 | " Enable filetype plugins 26 | filetype plugin on 27 | filetype indent on 28 | 29 | 30 | " base 31 | set nocompatible " don't bother with vi compatibility 32 | set autoread " reload files when changed on disk, i.e. via `git checkout` 33 | set shortmess=atI 34 | 35 | set magic " For regular expressions turn magic on 36 | set title " change the terminal's title 37 | set nobackup " do not keep a backup file 38 | 39 | set novisualbell " turn off visual bell 40 | set noerrorbells " don't beep 41 | set visualbell t_vb= " turn off error beep/flash 42 | set t_vb= 43 | set tm=500 44 | 45 | 46 | " show location 47 | set cursorcolumn 48 | set cursorline 49 | 50 | 51 | " movement 52 | set scrolloff=7 " keep 3 lines when scrolling 53 | 54 | 55 | " show 56 | set ruler " show the current row and column 57 | set number " show line numbers 58 | set nowrap 59 | set showcmd " display incomplete commands 60 | set showmode " display current modes 61 | set showmatch " jump to matches when entering parentheses 62 | set matchtime=2 " tenths of a second to show the matching parenthesis 63 | 64 | 65 | " search 66 | set hlsearch " highlight searches 67 | set incsearch " do incremental searching, search as you type 68 | set ignorecase " ignore case when searching 69 | set smartcase " no ignorecase if Uppercase char present 70 | 71 | 72 | " tab 73 | set expandtab " expand tabs to spaces 74 | set smarttab 75 | set shiftround 76 | 77 | " indent 78 | set autoindent smartindent shiftround 79 | set shiftwidth=4 80 | set tabstop=4 81 | set softtabstop=4 " insert mode tab and backspace use 4 spaces 82 | 83 | " NOT SUPPORT 84 | " fold 85 | set foldenable 86 | set foldmethod=indent 87 | set foldlevel=99 88 | let g:FoldMethod = 0 89 | map zz :call ToggleFold() 90 | fun! ToggleFold() 91 | if g:FoldMethod == 0 92 | exe "normal! zM" 93 | let g:FoldMethod = 1 94 | else 95 | exe "normal! zR" 96 | let g:FoldMethod = 0 97 | endif 98 | endfun 99 | 100 | " encoding 101 | set encoding=utf-8 102 | set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1 103 | set termencoding=utf-8 104 | set ffs=unix,dos,mac 105 | set formatoptions+=m 106 | set formatoptions+=B 107 | 108 | " select & complete 109 | set selection=inclusive 110 | set selectmode=mouse,key 111 | 112 | set completeopt=longest,menu 113 | set wildmenu " show a navigable menu for tab completion" 114 | set wildmode=longest,list,full 115 | set wildignore=*.o,*~,*.pyc,*.class 116 | 117 | " others 118 | set backspace=indent,eol,start " make that backspace key work the way it should 119 | set whichwrap+=<,>,h,l 120 | 121 | " if this not work ,make sure .viminfo is writable for you 122 | if has("autocmd") 123 | au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif 124 | endif 125 | 126 | " NOT SUPPORT 127 | " Enable basic mouse behavior such as resizing buffers. 128 | " set mouse=a 129 | 130 | 131 | " ============================ theme and status line ============================ 132 | 133 | " theme 134 | set background=dark 135 | colorscheme desert 136 | 137 | " set mark column color 138 | hi! link SignColumn LineNr 139 | hi! link ShowMarksHLl DiffAdd 140 | hi! link ShowMarksHLu DiffChange 141 | 142 | " status line 143 | set statusline=%<%f\ %h%m%r%=%k[%{(&fenc==\"\")?&enc:&fenc}%{(&bomb?\",BOM\":\"\")}]\ %-14.(%l,%c%V%)\ %P 144 | set laststatus=2 " Always show the status line - use 2 lines for the status bar 145 | 146 | 147 | " ============================ specific file type =========================== 148 | 149 | autocmd FileType python set tabstop=4 shiftwidth=4 expandtab ai 150 | autocmd FileType ruby set tabstop=2 shiftwidth=2 softtabstop=2 expandtab ai 151 | autocmd BufRead,BufNew *.md,*.mkd,*.markdown set filetype=markdown.mkd 152 | 153 | autocmd BufNewFile *.sh,*.py exec ":call AutoSetFileHead()" 154 | function! AutoSetFileHead() 155 | " .sh 156 | if &filetype == 'sh' 157 | call setline(1, "\#!/bin/bash") 158 | endif 159 | 160 | " python 161 | if &filetype == 'python' 162 | call setline(1, "\#!/usr/bin/env python") 163 | call append(1, "\# encoding: utf-8") 164 | endif 165 | 166 | normal G 167 | normal o 168 | normal o 169 | endfunc 170 | 171 | autocmd FileType c,cpp,java,go,php,javascript,puppet,python,rust,twig,xml,yml,perl autocmd BufWritePre :call StripTrailingWhitespaces() 172 | fun! StripTrailingWhitespaces() 173 | let l = line(".") 174 | let c = col(".") 175 | %s/\s\+$//e 176 | call cursor(l, c) 177 | endfun 178 | 179 | " ============================ key map ============================ 180 | 181 | nnoremap k gk 182 | nnoremap gk k 183 | nnoremap j gj 184 | nnoremap gj j 185 | 186 | map j 187 | map k 188 | map h 189 | map l 190 | 191 | nnoremap :set nu! nu? 192 | nnoremap :set list! list? 193 | nnoremap :set wrap! wrap? 194 | set pastetoggle= " when in insert mode, press to go to 195 | " paste mode, where you can paste mass data 196 | " that won't be autoindented 197 | au InsertLeave * set nopaste 198 | nnoremap :exec exists('syntax_on') ? 'syn off' : 'syn on' 199 | 200 | " kj 替换 Esc 201 | inoremap kj 202 | 203 | " Quickly close the current window 204 | nnoremap q :q 205 | " Quickly save the current file 206 | nnoremap w :w 207 | 208 | " select all 209 | map sa ggVG" 210 | 211 | " remap U to for easier redo 212 | nnoremap U 213 | 214 | " Swap implementations of ` and ' jump to markers 215 | " By default, ' jumps to the marked line, ` jumps to the marked line and 216 | " column, so swap them 217 | nnoremap ' ` 218 | nnoremap ` ' 219 | 220 | " switch # * 221 | " nnoremap # * 222 | " nnoremap * # 223 | 224 | "Keep search pattern at the center of the screen." 225 | nnoremap n nzz 226 | nnoremap N Nzz 227 | nnoremap * *zz 228 | nnoremap # #zz 229 | nnoremap g* g*zz 230 | 231 | " remove highlight 232 | noremap / :nohls 233 | 234 | "Reselect visual block after indent/outdent.调整缩进后自动选中,方便再次操作 235 | vnoremap < >gv 237 | 238 | " y$ -> Y Make Y behave like other capitals 239 | map Y y$ 240 | 241 | "Map ; to : and save a million keystrokes 242 | " ex mode commands made easy 用于快速进入命令行 243 | nnoremap ; : 244 | 245 | " save 246 | cmap w!! w !sudo tee >/dev/null % 247 | 248 | " command mode, ctrl-a to head, ctrl-e to tail 249 | cnoremap 250 | cnoremap 251 | cnoremap 252 | cnoremap 253 | -------------------------------------------------------------------------------- /.zshrc: -------------------------------------------------------------------------------- 1 | # If you come from bash you might have to change your $PATH. 2 | # export PATH=$HOME/bin:/usr/local/bin:$PATH 3 | 4 | # Path to your oh-my-zsh installation. 5 | export ZSH=/home/jing/.oh-my-zsh 6 | 7 | # Set name of the theme to load. Optionally, if you set this to "random" 8 | # it'll load a random theme each time that oh-my-zsh is loaded. 9 | # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes 10 | ZSH_THEME="robbyrussell" 11 | # ZSH_THEME="agnoster" 12 | DEFAULT_USER='jing' 13 | 14 | # Uncomment the following line to use case-sensitive completion. 15 | # CASE_SENSITIVE="true" 16 | 17 | # Uncomment the following line to use hyphen-insensitive completion. Case 18 | # sensitive completion must be off. _ and - will be interchangeable. 19 | # HYPHEN_INSENSITIVE="true" 20 | 21 | # Uncomment the following line to disable bi-weekly auto-update checks. 22 | # DISABLE_AUTO_UPDATE="true" 23 | 24 | # Uncomment the following line to change how often to auto-update (in days). 25 | # export UPDATE_ZSH_DAYS=13 26 | 27 | # Uncomment the following line to disable colors in ls. 28 | # DISABLE_LS_COLORS="true" 29 | 30 | # Uncomment the following line to disable auto-setting terminal title. 31 | # DISABLE_AUTO_TITLE="true" 32 | 33 | # Uncomment the following line to enable command auto-correction. 34 | # ENABLE_CORRECTION="true" 35 | 36 | # Uncomment the following line to display red dots whilst waiting for completion. 37 | # COMPLETION_WAITING_DOTS="true" 38 | 39 | # Uncomment the following line if you want to disable marking untracked files 40 | # under VCS as dirty. This makes repository status check for large repositories 41 | # much, much faster. 42 | # DISABLE_UNTRACKED_FILES_DIRTY="true" 43 | 44 | # Uncomment the following line if you want to change the command execution time 45 | # stamp shown in the history command output. 46 | # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" 47 | # HIST_STAMPS="mm/dd/yyyy" 48 | 49 | # Would you like to use another custom folder than $ZSH/custom? 50 | # ZSH_CUSTOM=/path/to/new-custom-folder 51 | 52 | # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) 53 | # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ 54 | # Example format: plugins=(rails git textmate ruby lighthouse) 55 | # Add wisely, as too many plugins slow down shell startup. 56 | 57 | plugins=(git git-flow colored-man-pages z last-working-dir history history-substring-search github git-hubflow docker docker-compose ) 58 | 59 | source $ZSH/oh-my-zsh.sh 60 | 61 | # User configuration 62 | 63 | # export MANPATH="/usr/local/man:$MANPATH" 64 | 65 | # You may need to manually set your language environment 66 | # export LANG=en_US.UTF-8 67 | 68 | # Preferred editor for local and remote sessions 69 | if [[ -n $SSH_CONNECTION ]]; then 70 | export EDITOR='vim' 71 | else 72 | export EDITOR='vim' 73 | fi 74 | 75 | # Compilation flags 76 | # export ARCHFLAGS="-arch x86_64" 77 | 78 | # ssh 79 | # export SSH_KEY_PATH="~/.ssh/rsa_id" 80 | 81 | # Set personal aliases, overriding those provided by oh-my-zsh libs, 82 | # plugins, and themes. Aliases can be placed here, though oh-my-zsh 83 | # users are encouraged to define aliases within the ZSH_CUSTOM folder. 84 | # For a full list of active aliases, run `alias`. 85 | # 86 | # Example aliases 87 | # alias zshconfig="mate ~/.zshrc" 88 | # alias ohmyzsh="mate ~/.oh-my-zsh" 89 | 90 | # set /opt/dircolors-solarized/dircolors.256dark 91 | eval `dircolors ~/.dircolors` 92 | export TERM=xterm-256color 93 | 94 | #漂亮又实用的命令高亮界面 95 | setopt extended_glob 96 | TOKENS_FOLLOWED_BY_COMMANDS=('|' '||' ';' '&' '&&' 'sudo' 'do' 'time' 'strace') 97 | 98 | recolor-cmd() { 99 | region_highlight=() 100 | colorize=true 101 | start_pos=0 102 | for arg in ${(z)BUFFER}; do 103 | ((start_pos+=${#BUFFER[$start_pos+1,-1]}-${#${BUFFER[$start_pos+1,-1]## #}})) 104 | ((end_pos=$start_pos+${#arg})) 105 | if $colorize; then 106 | colorize=false 107 | res=$(LC_ALL=C builtin type $arg 2>/dev/null) 108 | case $res in 109 | *'reserved word'*) style="fg=magenta,bold";; 110 | *'alias for'*) style="fg=cyan,bold";; 111 | *'shell builtin'*) style="fg=yellow,bold";; 112 | *'shell function'*) style='fg=green,bold';; 113 | *"$arg is"*) 114 | [[ $arg = 'sudo' ]] && style="fg=red,bold" || style="fg=blue,bold";; 115 | *) style='none,bold';; 116 | esac 117 | region_highlight+=("$start_pos $end_pos $style") 118 | fi 119 | [[ ${${TOKENS_FOLLOWED_BY_COMMANDS[(r)${arg//|/\|}]}:+yes} = 'yes' ]] && colorize=true 120 | start_pos=$end_pos 121 | done 122 | } 123 | 124 | check-cmd-self-insert() { zle .self-insert && recolor-cmd } 125 | check-cmd-backward-delete-char() { zle .backward-delete-char && recolor-cmd } 126 | zle -N self-insert check-cmd-self-insert 127 | zle -N backward-delete-char check-cmd-backward-delete-char 128 | 129 | # load aliases 130 | test -f ~/.bash_aliases && source ~/.bash_aliases 131 | 132 | export PYENV_ROOT="$HOME/.pyenv" 133 | export PATH="$PYENV_ROOT/bin:$PATH" 134 | if command -v pyenv 1>/dev/null 2>&1; then 135 | eval "$(pyenv init -)" 136 | eval "$(pyenv virtualenv-init -)" 137 | fi 138 | 139 | eval $(thefuck --alias) 140 | 141 | # added by travis gem 142 | [ -f /home/jing/.travis/travis.sh ] && source /home/jing/.travis/travis.sh 143 | 144 | LANG="en_US.UTF-8" 145 | LANGUAGE="en_US:en" 146 | 147 | #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! 148 | export SDKMAN_DIR="/home/jing/.sdkman" 149 | [[ -s "/home/jing/.sdkman/bin/sdkman-init.sh" ]] && source "/home/jing/.sdkman/bin/sdkman-init.sh" 150 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knitmesh/myconfig/e9637278e805c3854214f613d7b57d49684f473a/README.md -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | INSTALL_COMMAND='sudo apt-get install ' 3 | 4 | $INSTALL_COMMAND 'thefuck' 5 | $INSTALL_COMMAND 'mycli' 6 | $INSTALL_COMMAND 'pyenv' 7 | $INSTALL_COMMAND 'tmux' 8 | 9 | # sdkman 10 | #curl -s "https://get.sdkman.io" | bash 11 | #source "$HOME/.sdkman/bin/sdkman-init.sh" 12 | #sudo ln -s /home/jing/.sdkman/candidates/java/8.0.201-oracle/bin/java /usr/bin/java 13 | 14 | # nvm 15 | curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.2/install.sh | bash 16 | 17 | # pyenv 18 | git clone https://github.com/pyenv/pyenv.git ~/.pyenv 19 | 20 | 21 | HOME_ROOT=~/ 22 | mkdir -p $HOME_ROOT.ssh/socks 23 | 24 | cp -i ./.ssh/* $HOME_ROOT.ssh/ 25 | 26 | cp -i ./.bash_aliases $HOME_ROOT 27 | 28 | cp -i ./.bashrc $HOME_ROOT 29 | 30 | cp -i ./.devrc.sh $HOME_ROOT 31 | 32 | cp -i ./.dircolors $HOME_ROOT 33 | 34 | cp -i ./.gitconfig $HOME_ROOT 35 | 36 | cp -i ./.myclirc $HOME_ROOT 37 | 38 | cp -i ./.tmux.conf $HOME_ROOT 39 | 40 | cp -i ./.vimrc-for-server $HOME_ROOT 41 | 42 | cp -i ./.zshrc $HOME_ROOT 43 | 44 | cp -ri ./.pip $HOME_ROOT 45 | --------------------------------------------------------------------------------