如何将.bash_profile移离家


9

我需要.bash_profile与Dropbox同步。我能想到的最简单的方法是“重定向”外壳程序以.bash_profile在自定义文件夹中搜索。

那有可能吗?还是有更好的解决方案?


1
进行符号链接到文件
Eddy_Em

Answers:


12

正如Eddy_Em建议的那样,只需链接到它:

mv ~/.bash_profile ~/Dropbox/.bash_profile
ln -s ~/Dropbox/.bash_profile ~/
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.