我的博客
欢迎来到我的博客
bunny.icu

MacOS设置alias

MacOS设置alias

新版MacOS默认终端为zsh,因此写入~/.bash_profile中的命令不会在启动终端时自动执行,应该写入~/.zshrc

vim ~/.zshrc
alias ll='ls -al'
alias push='git add . && git commit -m "Commit from Mac"' && git push

版权声明


本作品系原创, 转载须遵循 CC BY-NC-ND 4.0 许可协议
本文标题:MacOS设置alias
本文链接:https://www.bunny.icu/archives/1871

推荐文章

发表回复

textsms
account_circle
email

bunny.icu

MacOS设置alias
新版MacOS默认终端为zsh,因此写入~/.bash_profile中的命令不会在启动终端时自动执行,应该写入~/.zshrc vim ~/.zshrc alias ll='ls -al' alias push='git add . && git commi…
扫描二维码继续阅读
2024-12-14