Skip to content

Instantly share code, notes, and snippets.

@tanyuan
Last active September 14, 2023 14:53
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tanyuan/d8ac86407893699e0d2b to your computer and use it in GitHub Desktop.
Save tanyuan/d8ac86407893699e0d2b to your computer and use it in GitHub Desktop.
How to use GNU Stow.

GNU Stow: maintain dotfiles

Put all dotfiles in a specific folder so it is easy to use version control tool like git.

Steps

  1. Create directory ~/dotfiles/.

  2. Copy dotfiles into directories like:

    ~/dotfiles/
      +- bash/
      |  +- .bashrc
      +- ranger/
      |  +- .config/
      |     +- ranger/
      +- tmux/
      |  +- .tmux.conf
      +- vim/
         +- .vim/
         +- .vimrc
    
  3. Create symbolic links for directory bash from dotfiles:

    cd ~/dotfiles/
    stow bash
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment