- I want to manage my dotfiles in a single repository.
- I want to install my dotfiles with a single command.
- I want to install my dotfiles without git command.
- I want to update and sync my dotfiles with a single command.
- This repository is a collection of my dotfiles.
- This repository provides a script to install or backup my dotfiles.
- .config/nvim : manual symlink
- ~/.zshrc : see
just zsh
- ~/.Brewfile : see
just brew
- Please run
just
command to see how to use this repository.
- Provide
install.sh
to install dotfiles with a single command. - Provide a custom brew install command
bi
.bi
is a set ofbrew install
andbrew bundle dump
.- This command installs a formula and syncs
dotfiles/.Brewfile
.
- Provide a custom brew cask install command
bci
.bci
is a set ofbrew cask install
andbrew bundle dump
.- This command installs a cask and syncs
dotfiles/.Brewfile
.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/sota0121/dotfiles/main/install.sh)"
# custom brew install
bi $formula
# custom brew cask install
bci $cask
cd $DOTFILES_DIR
git add .
git commit -m "update dotfiles"
git push origin main
cd $DOTFILES_DIR
brew bundle install --file .Brewfile
- Clone this repository to
$HOME/dotfiles
.- If the directory already exists,
install.sh
will exit.
- If the directory already exists,
- Install
bi
andbci
commands to$HOME/.zshrc
as alias.- If the alias already exists,
install.sh
will exit.
- If the alias already exists,
- Brew bundle install using
$HOME/dotfiles/.Brewfile
. - Reload
$HOME/.zshrc
to apply the alias.