zsh
git
curl
orwget
(for Zinit)
One new machines, the following commands will set these dot files
They are careful not to overrite files if they already exist.
You can modify this behavior with flags to the reset
command.
An alias to dotfiles
should be used after this set-up
# start from home directory
cd ~
# clone just the .git directory to a subpath
git clone --bare https://github.com/ajilty/dotfiles.git $HOME/.dotfiles
# fetch without pulling down files
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME fetch --all
# pull down files, handle conflicts with current go reckless with `reset --hard`
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME reset --merge
# restart shell
exec zsh
Action | Command |
---|---|
View tracked files | dotfiles-tracked |
Add tracked files | dotfiles add -f <file or directory to add> dotfiles commit <msg> dotfiles push |
Update | dotfiles-update |
Shell | dotfiles-shell |
Also see Zinit commands