Akiraka Akiraka
  • Home
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • Big Data
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • K8S
    • Kubernetes
    • Helm
  • Other
  • Quark
  • Contribute
  • Home
  • Linux
    • ELK
    • PHP
    • Shell
    • Nginx
    • Docker
      • Docker Compose
    • Centos
    • Ubuntu
    • Jenkins
  • Python
  • Mac OS
  • Windows
  • Big Data
    • Hadoop
    • CDH
    • Hive
    • Spark
    • ZooKeeper
  • K8S
    • Kubernetes
    • Helm
  • Other
  • Quark
  • Contribute
首页 Mac OS mac使用zsh终端环境变量配置无效的解决方案

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

Akiraka 2年前
  • 创建 ~/.bash_profile文件
  • vim ~/.bash_profile文件,进行环境变量的配置
  • 完了之后使用zsh终端发现配置的环境变量还是无效,每次打开zsh都需要手动source ~/.bash_profile
  • 解决方案:修改zsh的配置文件,让其在每次启动的时候来读取~/.bash_profile里面的配置。
vim ~/.zshrc
#   在文件的最后面加上
source ~/.bash_profile
  • source ~/.zshrc 使其立即生效
#linux#mac
0
猜你喜欢
  • Linux Centos/Ubuntu/Debain配置账户登录失败锁定策略
  • Linux systemd-resolve占用53端口的解决方法
  • Linux 常用解压缩命令
  • Mac Termius 备份会话方式
  • 修改 Linux history 历史记录保存条数与时间
Akiraka
站长
本人擅长 Ai、Au、Fl、Ae、Pr、Ps 等软件的安装与卸载,精通 CSS、JavaScript、PHP、Python、Shell、Go 等单词的拼写,熟悉 Windows、Linux、Mac、Android、IOS 等系统的开关机!
160
文章
24
评论
73
获赞
Popular Articles
TOP1
Kubernetes(k8s)Helm 部署 EFK 集群
2年前
TOP2
Kubernetes(k8s)helm 搭建 prometheus + Grafana 监控
2年前
TOP3
Container 命令ctr、crictl 命令使用说明
11月前
TOP4
Kubernetes(k8s)Helm 部署 Jenkins 持续化集成部署
2年前
TOP5
Helm 部署 Loki 日志聚合
2年前
Related Articles
CentOS 安装tab命令补全
2年前
Ubuntu 16.04 安装CDH 5.16.2
2年前
Linux 常用的配置文件位置
1年前
Php-fpm启动后没有查询到9000端口的问题
2年前
Linux命令行实现回收站功能
1年前
Copyright © 2019-2022 Akiraka. 沪18036911号