简单点文件安装在zsh中
如何使用zsh将目录上的所有点文件符号链接到我的主目录?i、 我有一个目录,里面有简单点文件安装在zsh中,zsh,Zsh,如何使用zsh将目录上的所有点文件符号链接到我的主目录?i、 我有一个目录,里面有.gitconfig,我想把它符号链接到~/.gitconfig 谢谢 如果您希望本地目录中的sym链接指向家庭目录: cd my-own-local-dir for ifile in .*(.); do # notice the '(.)' matching only normal files # rm -fv $ifile # COMMENTED OUT, removing the
.gitconfig
,我想把它符号链接到~/.gitconfig
谢谢 如果您希望本地目录中的sym链接指向家庭目录:
cd my-own-local-dir
for ifile in .*(.); do # notice the '(.)' matching only normal files
# rm -fv $ifile # COMMENTED OUT, removing the original...
ln -vs ~/$ifile $ifile # sym-links to your home dir...
done
你应该试试。它支持使用yaml
文件管理dotfiles。易于映射:D
例如:
- link:
~/.config/terminator:
create: true
path: config/terminator
~/.vim: vim
~/.vimrc:
relink: true
path: vimrc
~/.zshrc:
force: true
path: zshrc