美文网首页程序员
Mac 开发人员装机指南

Mac 开发人员装机指南

作者: skyh25 | 来源:发表于2018-07-08 17:11 被阅读0次

    Mac 开发人员装机(逼)指南

    之前装太多blockchain导致机器慢了,现在重装感觉机器清新了,用电也没那么快了

    Java 环境

    Oracle官网安装 Jdk10

    IOS 环境 App store 安装 Xcode

    Android 环境 Android Studio

    intelliJ Kotlin环境

    Python3 环境 & Vscode

    自带是 Python2.7

    官网安装 Anaconda, 自带文档,自带安装 NotebookVscode ,并修改.bash_profile

    Node.js

    官网 node10,安装包自动安装node和npm

    npm下载缓慢换淘宝源

    1.临时使用
    npm --registry https://registry.npm.taobao.org install express

    2.持久使用
    npm config set registry https://registry.npm.taobao.org

    验证是否成功
    npm config get registrynpm info express

    3.通过cnpm使用
    npm install -g cnpm --registry=https://registry.npm.taobao.org

    使用
    cnpm install express

    安装 yarn, brew install yarn

    安装webstorm

    brew

    brew中文官网,brew
    或者直接运行
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    试试

    brew install wget

    github

    安装xcode就会有git

    ssh-keygen -t rsa -b 4096 -C "skyhigh@youremail.com"

    一直回车

    pbcopy < ~/.ssh/id_rsa.pub

    复制粘贴板,然后粘贴到github setting里面

    Markdown 编辑器

    用了Macdown

    Atom 安装markdown-preview-enhance 作为markdown
    hydrogen 用来做python kernel
    minimap
    terminal-plus
    vim-mode-plus

    个人觉得好用的只有简书吧。。可以复制粘贴图片

    ~/.bash_profile

    下面分享下bash

    # colors
    export CLICOLOR=1
    export LSCOLORS=Exfxcxdxbxegedabagacad
    export TERM="xterm-color"
    PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '
    export GREP_OPTIONS='--color=always'
    
    export ANDROID_SDK=/Users/skyhigh/Library/Android/sdk
    export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home
    export CLASSPATH=$JAVA_HOME/lib
    export PATH=.:$JAVA_HOME/bin:$ANDROID_SDK/platform-tools:$PATH
    
    # added by Anaconda3 5.2.0 installer
    export PATH="/Users/skyhigh/anaconda3/bin:$PATH"
    
    alias ..='cd ..'
    alias ...='cd ../..'
    alias l='ls -ahl'
    alias ll='ls -l'
    alias la='ls -a'
    alias le='less -N'
    alias cl='clear'
    
    
    alias cpy='cd ~/Desktop/Python'
    alias cios='cd ~/Desktop/IOSProject'
    alias cand='cd ~/Desktop/AndroidProject'
    alias cweb='cd ~/Desktop/Web'
    alias ccpp='cd ~/Desktop/Cpp'
    alias cgit='cd ~/Desktop/Github'
    alias cbtc='cd ~/Blockchain'
    
    alias cx='chmod +x'
    alias c7='chmod 777'
    
    alias gc='git clone'
    alias gp='git pull'
    
    alias bi='brew install'
    alias pi='pip install'
    
    alias ni='npm install' # -g sudo cannot found
    alias ns='npm install --save'
    alias nr='npm run dev'
    alias ys='yarn serve'
    
    alias d='du -sh' # d *
    alias dh='df -h' 
    
    alias a='adb shell'
    #alias b='brew install'
    alias c='cat'
    ###alias d='du -sh'
    #alias e='echo'
    #alias f='find . -name'
    #alias g='grep'
    alias h='head'
    alias i='ifconfig | grep inet'
    #alias j='jobs'
    #alias k='kill -9'
    ###alias l=
    #alias m='man'
    #alias n='netstat' #npm
    alias t='tail'
    alias s='source ~/.bash_profile'
    
    alias v='vi ~/.bash_profile'
    alias vv='vi ~/.vimrc'
    alias my='subl my.sh'
    alias sb='subl ~/.bash_profile'
    
    alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
    alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
    

    对不起没图,下次从基础再简单介绍下web,blockchain开发吧

    相关文章

      网友评论

        本文标题:Mac 开发人员装机指南

        本文链接:https://www.haomeiwen.com/subject/tybouftx.html