Using bash to automate dotfiles

后端 未结 6 1955
执笔经年
执笔经年 2021-02-06 09:21

I want to create my own automated dotfiles folder. (I\'ll be using git to use version control on my dotfiles, but that\'s irrelevant for the question)

What i simply want

6条回答
  •  野的像风
    2021-02-06 10:12

    I am not sure if I'm getting the question right, but if you looking for symlinks of dir-content, try

    for f in `ls -1 .dotfiles`
    do
       ln -s .dotfiles/$f ~/$f
    done
    

    maybe that already does the trick

提交回复
热议问题