1

嘿,我正在尝试安装这些点文件https://github.com/mathiasbynens/dotfiles

当我安装时,它会通过 bootstrap.sh 自动将所有内容解压到我的主目录中。

我不希望它们在这里解包我需要一个替代位置,但是当我在 rsync 命令中更改位置时:

rsync --exclude ".git/" --exclude ".DS_Store" --exclude "bootstrap.sh" \
                --exclude "README.md" --exclude "LICENSE-MIT.txt" -av --no-perms . ~
        source ~/.bash_profile

点文件不适用,因为终端不默认为新的.bash_profile,因为它不在主目录中。

我需要知道如何将我的终端应用程序指向我.bash_profile认为的新应用程序

4

1 回答 1

0

只需.bash_profile从您家中的新品采购。附加

[ -f /path/to/rsynced/.bash_profile ] && . /path/to/rsynced/.bash_profile

到你的~/.bash_profilebash_profile在你家里)。这仅适用于 shell 启动文件,不适用于其他点文件。

或者,您可以创建符号链接

ln -s /path/to/rsynced/.bash_profile ~/.bash_profile
于 2014-01-15T02:20:41.313 回答