Akiraka Akiraka
  • 首页
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • 大数据
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • 微服务
    • Kubernetes
    • Helm
  • Other
  • Quark
  • 首页
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • 大数据
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • 微服务
    • Kubernetes
    • Helm
  • Other
  • Quark
首页 › Mac OS › mac使用zsh终端环境变量配置无效的解决方案

mac使用zsh终端环境变量配置无效的解决方案

Akiraka1年前
  • 创建 ~/.bash_profile文件
  • vim ~/.bash_profile文件,进行环境变量的配置
  • 完了之后使用zsh终端发现配置的环境变量还是无效,每次打开zsh都需要手动source ~/.bash_profile
  • 解决方案:修改zsh的配置文件,让其在每次启动的时候来读取~/.bash_profile里面的配置。
vim ~/.zshrc
#   在文件的最后面加上
source ~/.bash_profile
  • source ~/.zshrc 使其立即生效
#linux#mac
0
分享
Akiraka 站长
文章 121评论 10
相关文章
  • Docker 修改默认存储路径
  • Centos/Ubuntu Linux 系统 根目录扩容方法
  • 搭建 Redis 主从搭建配置
  • MAC OS X 路由表添加与删除
  • Ubuntu 与 Centos Vim 配置
Akiraka
站长
本人擅长 Ai、Au、Fl、Ae、Pr、Ps 等软件的安装与卸载,精通 CSS、JavaScript、PHP、Python、Shell、Go 等单词的拼写,熟悉 Windows、Linux、Mac、Android、IOS 等系统的开关机!
121文章
10评论
47获赞
想找什么搜一下
文章聚合
Centos 搭建NFS服务
1年前
Kubernetes(k8s)helm 部署 Traefik
7月前
Mac终端 bash和zsh切换方法
1年前
Ubuntu 实现端口转发:Rinetd部署
1年前
Kubernetes(k8s)helm 部署 RabbitMq 集群
11月前
微信小程序
微信小程序
标签云
brew cdh centos cmd docker docker compose elasticsearch elk filebase filebeat gitlab grafana hadoop helm hive hue jdk jenkins k8s kibana kubernetes liniux linux logstash mac mikrotik mydumper mysql nfs nginx openssl oss php pip pyspark python RabbitMQ redis rocketmq shell Spark ubuntu windows ZooKeeper 容器编排
Copyright © 2019-2021 Akiraka. Designed by nicetheme. 沪18036911号