电脑软件安装和配置

- chrome: https://www.google.cn/chrome/
  - vimnium
- 屏保: https://fliqlo.com/
- 分屏:https://www.spectacleapp.com/
 
- homebrew: https://brew.sh/
- vscode
  - 扩展

 

- iTerm2 + Oh My Zsh + go2shell
  - item2: https://www.iterm2.com/
    - chsh -s /bin/zsh
  - oh my zsh: https://ohmyz.sh/
  - go2shell: http://zipzapmac.com/go2shell
 
- zshrc 简单配置
extract() {
    if [ -f $1 ] ; then
      case $1 in
        *.tar.bz2)   tar xjf $1     ;;
        *.tar.gz)    tar xzf $1     ;;
        *.bz2)       bunzip2 $1     ;;
        *.rar)       unrar e $1     ;;
        *.gz)        gunzip $1      ;;
        *.tar)       tar xf $1      ;;
        *.tbz2)      tar xjf $1     ;;
        *.tgz)       tar xzf $1     ;;
        *.zip)       unzip $1       ;;
        *.Z)         uncompress $1  ;;
        *.7z)        7z x $1        ;;
        *)     echo "'$1' cannot be extracted via extract()" ;;
         esac
     else
         echo "'$1' is not a valid file"
     fi
}

countline() {
    if [ -n $1 ]; then
        find . -name $1 | xargs wc -l | grep "total"
    else
        echo 'please input the file type, eg. *.js'
    fi
}
alias cls='clear'
alias ll='ls -l'
alias la='ls -al'
alias st='open -a "Sublime Text"'
alias vs='open -a "Visual Studio Code"'

 

 
- sublime 配置
{
    "always_show_minimap_viewport": true,
    "caret_extra_bottom": 3,
    "caret_extra_top": 3,
    "caret_extra_width": 2,
    "color_scheme": "Packages/Solarized Color Scheme/Solarized (dark).sublime-color-scheme",
    "default_line_ending": "unix",
    "draw_minimap_border": true,
    "draw_white_space": "all",
    "ensure_newline_at_eof_on_save": true,
    "fade_fold_buttons": false,
    "fold_buttons": true,
    "font_size": 11,
    "highlight_line": true,
    "highlight_modified_tabs": true,
    "hot_exit": true,
    "ignored_packages":
    [
        "Vintage"
    ],
    "overlay_scroll_bars": "enabled",
    "remember_open_files": true,
    "rulers":
    [
        80
    ],
    "save_on_focus_lost": true,
    "tab_size": 4,
    "theme": "Solarized Flat Dark.sublime-theme",
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true,
    "word_wrap": false,
    "wrap_width": 80
}

 

- vim 简单配置

set nocompatible

set nu

set cursorline

set cursorcolumn

set ruler

set cc=80

set enc=utf-8
set nobomb

set fileencoding=utf-8
language messages zh_CN.utf-8

set langmenu=zh_CN.UTF-8
set helplang=cn

syntax enable

set background=dark
set t_Co=256

set nobackup

set hlsearch

 

posted @ 2018-09-21 22:32  xiaohong_oath  阅读(718)  评论(0编辑  收藏  举报