Using bash to automate dotfiles

后端 未结 6 2012
执笔经年
执笔经年 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:24

    Atlassian has a tutorial on using a git work tree instead of symlinks. The approach uses:

    1. a bare git repository in a side folder (such as $HOME/.cfg or $HOME/dotfiles), and
    2. a config bash alias to execute git commands that manage the configuration files.

    For instance, you can run config status to check which files have been modified, config checkout to get the files in the repository and config commit to update the repository. It requires only git and the bash.

提交回复
热议问题