首页

    我的Mac重装记录

    标签:Mac

    • iterm2
    • v2ray
    • leanote
    • chrome
    • brew
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
    • command line developer tools
    xcode-select --install
    

    vim

    git config --global http.proxy 'socks5://127.0.0.1:1080'
    git config --global https.proxy 'socks5://127.0.0.1:1080'
    
    brew install vim
    
    curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    
    call plug#begin('~/.vim/bundle')
    Plug 'junegunn/fzf.vim'
    ...
    call plug#end()
    

    vim-go :GoInstallBinaries

    • YouCompleteMe
    brew install cmake ctags ack
    cd ~/.vim/bundle/YouCompleteMe
    ./install.py --go-completer
    
    • zsh plugins

    解绑^+<-,^+->

    chsh -s $(which zsh)
    
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
    
    plugins=(zsh-syntax-highlighting zsh-autosuggestions history-substring-search)
    
    • go
    export GOROOT=$HOME/dev/go
    export GOPATH=$HOME/dev/gopath
    export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
    
    • pip

    ~/.pip/pip.conf

    [global]
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple
    
    • autojump
    brew install autojump
    

    .zshrc

    [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
    
    brew install bat
    
    brew install fd
    
    brew install tree
    git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
    ~/.fzf/install
    
    brew install the_silver_searcher
    

    不定期更新