你怎么能导出您的.bashrc到.zshrc? [英] How can you export your .bashrc to .zshrc?

查看:1656
本文介绍了你怎么能导出您的.bashrc到.zshrc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从猛砸移动到的zsh。

I am trying to move to zsh from Bash.

我把我的.bashrc直接到我的.zshrc,它造成了很多的错误,当我尝试再次使用猛砸。

I put my .bashrc directly to my .zshrc, and it caused a lot of errors when I try to use Bash again.

您如何导出你的.bashrc到.zshrc?

推荐答案

虽然lhunath的回答把我推在正确的方向,zsh中似乎没有源 .profile文件自动不。很多关于这个主题好消息的可以在这个超级用户帖子。

While lhunath's answer pushed me in the right direction, zsh does not seem to source .profile automatically. Lot's of good info on this topic can be found on this superuser post.

我使用的是把常见的别名和功能适应于 .profile文件和手动采购它们如下:

The adaption I'm using is putting common aliases and functions in .profile and manually sourcing them as follows:

的.bashrc

源〜/ .profile文件

.zshrc

[-e〜/ .profile文件]&放大器;&安培;效仿SH -c'源〜/ .profile文件'

这篇关于你怎么能导出您的.bashrc到.zshrc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆