Dotfiles repo as described in this article.
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
echo ".dotfiles" >> .gitignore
git clone --bare https://github.com/esize/dotfiles.git $HOME/.dotfiles
config checkout
If config checkout
returns an error, run the following:
mkdir -p .config-backup && \
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .config-backup/{}
config config --local status.showUntrackedFiles no
git config --global user.email "[email protected]"
git config --global user.name "esize"
gh auth login && gh auth setup-git
nvim $PROFILE
Edit the PowerShell configuration file and add the following line:
(@(& 'C:/Users/evan/AppData/Local/Programs/oh-my-posh/bin/oh-my-posh.exe' init pwsh --config='C:\Users\evan\dotfiles\.config\omp\omp.toml' --print) -join "`n") | Invoke-Expression
Create a symlink between the neovim config in the dotfiles repo and the Windows neovim directory.
New-Item -Path ~\AppData\Local\nvim -ItemType SymbolicLink -Value C:\Users\evan\dotfiles\.config\nvim\