美文网首页
【Mac 终端】切换默认终端

【Mac 终端】切换默认终端

作者: dongbingliu | 来源:发表于2017-06-17 23:38 被阅读1176次
    image.png

    Mac 系统安装了 zsh 终端与系统默认终端

    终端切换命令 :

    bash 终端切回 zsh 终端:

    chsh -s /bin/zsh

    zsh 终端切回 bash 终端:

    chsh -s /bin/bash

    终端中使用adb,zsh

    open .zshrc
    然后找到# User configuration部分,添加
    source ~/.bash_profile
    
    执行source .zshrc
    

    其中.bash_profile 内容

    export PATH=${PATH}:/Applications/adt-bundle-mac-x86_64-20140702/sdk/platform-tools:/Applications/adt-bundle-mac-x86_64-20140702/sdk/tools
    #export PS1="\u \w$"
    #export CLICOLOR=1
    

    相关文章

      网友评论

          本文标题:【Mac 终端】切换默认终端

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