Mac设置ll永久生效,设置.bash_profile生效

Mac设置ll永久生效,设置.bash_profile生效

前言:Mac上自带的终端不好用,一般我推荐ITerm终端,官网下载即可

如果想只生效一次:

直接在终端执行alias 'll=ls -l'即可

如果想永久生效:

vim ~/.bash_profile,添加一行alias 'll=ls -l',然后执行 source ~/.bash_profile,一般就可以了

如果你发现在重起电脑或者重开一个终端窗口,ll又不生效了,继续往下看:

在~/.zshrc文件最后,增加一行: source ~/.bash_profile,然后就OK了,再开一个终端窗口试试,是不是生效了

相关推荐
Web3&Basketball1 天前
Meta Muse 816B 实测:两台 Mac 本地跑通
macos·大模型·mac·本地部署·moe·显存优化·meta muse
Keith Guo4 天前
Understanding the Layers of Wireless Chips: RF, Baseband, and MAC in ESP32-S31
mac·rf·baseband
CocoaKier7 天前
如何安装旧版的MacOS系统?
macos·ios·mac
Hello_Pyhx9 天前
WinDirStat 2.9.3:从目录扫描到可复查的占用报表
windows·mac·垃圾清理
OliverQiu10 天前
开源一个 macOS 小工具:集中管理 ChatGPT 的网络启动配置
macos·chatgpt·swiftui·mac·proxy·codex·dmg
bug和崩溃我都要11 天前
QT 开发的专业截图录屏工具 - macOS版 / Windows版
windows·qt·mac·录屏·截屏
Fcy64811 天前
Linux下 数据链路层详解(从以太网到ARP协议)
linux·mac·以太网·数据链路层·arp
我命由我123451 个月前
Mac 操作系统 - 一些使用记录
运维·windows·学习·系统安全·运维开发·mac·学习方法
倔强的小石头_1 个月前
把 Mac mini 变成远程 AI 工作台:OpenClaw + 飞书 + cpolar 实战
飞书·mac·openclaw
qwsaedca1 个月前
在Mac上跑 Kokoro TTS经验总结
rust·mac·tts