美文网首页
.bash_profile & .zshrc 环境变量配置

.bash_profile & .zshrc 环境变量配置

作者: superFool | 来源:发表于2022-02-28 10:18 被阅读0次
    1. .bash_profile & .zshrc文件编写
    #引用其他环境变量配置文件
    source ~/.bash_profile
    
    export PATH="$PATH":"/Users/superfool/develop/flutter/bin"
    export PATH="$PATH":"/Users/superfool/develop/flutter/.pub-cache/bin"
    export PATH="$PATH":"/Users/superfool/develop/flutter/bin/cache/dart-sdk/bin"
    
    
    1. 添加环境变量后使用source $HOME/.zshrc刷新当前终端窗口

    相关文章

      网友评论

          本文标题:.bash_profile & .zshrc 环境变量配置

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