Dotfiles configuration
Installing dotfiles
Clone the repo into a bare repository inside $HOME
:
git clone --bare git@github.com:priba/dots.git $HOME/.dotfiles
Define the management command alias (dots
) inside the current shell scope:
alias dots='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
Checkout the actual content from the bare repository to $HOME
dots checkout
Errors might pop up at this point because $HOME
might have some stock versions of configuration
files (.bashrc
, .zshrc
, etc.). Delete them (or back them up), then re-run the above command.
Ignore any untracked files (to avoid unnecessary clutter of dots status
) using
dots config --local status.showUntrackedFiles no
Scripts
Several scripts are provided for installing the needed things in a new system. Check:
install_macos.sh
install_font.sh
setup_server.sh
upgrade_yabai.sh
Usage
Updating dotfiles and pushing changes becomes very easy:
dots status
dots add .zhsrc
dots commit -m "Add .zshrc"
dots push
Tmux
Keep in mind that the first time we open the tmux, we will need to install all the plugins. Hit
prefix + I
to fetch the plugin and source it. The plugin will automatically start "working" in the
background, no action required.
Yabai and Skhd
You might need to restart the service:
brew services restart yabai
brew services restart skhd