https://www.atlassian.com/git/tutorials/dotfiles
Starting from scratch
git init --bare $HOME/.dotfiles
# configure alias
alias dot='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
dot config --local status.showUntrackedFiles no
Install to an existing system
# configure alias
alias dot='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
git clone --bare [email protected]:xevgeny/dotfiles.git $HOME/.dotfiles
dot config --local status.showUntrackedFiles no
# resolve all conflicts during checkout
dot checkout
sudo apt-add-repository -y ppa:fish-shell/release-3
sudo apt update
sudo apt install -y htop tmux tig fish
sudo chsh -s /usr/bin/fish
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
omf install https://github.com/jhillyerd/plugin-git