~/dotfiles/
├── .config/
│ ├── nvim/
│ ├── starship/
│ └── tmux/
├── images/
├── vscode/
└── README.md
Note
If you have existing configuration files you want to manage, please refer to the Using GNU Stow section for guidance on backing up and handling your current setups.
To set up these dotfiles using GNU Stow, follow the steps below:
-
Clone the repository:
git clone https://github.com/ethanbyeon/dotfiles.git dotfiles cd dotfiles/
-
Install GNU Stow:
For macOS (Homebrew):
brew install stow
-
Create Symlinks for Configurations:
To symlink the configuration files (e.g., for
nvim
,zsh
, ortmux
), run:stow <package>
Replace
<package>
with the directory name of the configuration you want to symlink (e.g.,nvim
,zsh
).
Tip
After running the stow
command, confirm that the configuration files are correctly placed and loaded on your system.
GNU Stow helps manage and symlink configuration files from your dotfiles repository to their appropriate locations. Follow these steps to set it up:
To move your current configurations into your dotfiles repository, use the --adopt
flag:
stow <package> --adopt
This command will move any existing files (e.g., ~/.zshrc
) into your dotfiles repository. Ensure the repository's directory structure matches your system's file paths.
Warning
The --adopt
flag will overwrite any files in the repository with the same name as those being moved.
-
Clone the repository and navigate into its directory.
-
Create symlinks for the desired packages using Stow:
stow <package>
This will link the configuration files from your dotfiles repository to their corresponding locations on your system (e.g., ~/.config/nvim/
).