Update README.md

Not 100% working but basic windows instructions added
This commit is contained in:
theflyingfool 2024-06-10 15:49:32 -05:00
parent 3f52ce6857
commit c155482690

View File

@ -9,8 +9,7 @@ My dotfiles for both Arch Linux and Windows
```sh ```sh
git clone --bare gitea@git.theflyingfool.com:theflyingfool/dotfiles.git $HOME/.dot git clone --bare gitea@git.theflyingfool.com:theflyingfool/dotfiles.git $HOME/.dot
alias dot='/usr/bin/git --git-dir="$HOME/.dot/" --work-tree="$HOME"' alias dot='/usr/bin/git --git-dir="$HOME/.dot/" --work-tree="$HOME"'
dot checkout
dot config --local status.showUntrackedFiles no
source ~/.zshrc source ~/.zshrc
``` ```
@ -31,4 +30,20 @@ dot checkout
dot add .zshrc dot add .zshrc
dot commit -m "Update .zshrc" dot commit -m "Update .zshrc"
dot push dot push
```
## Useage on Windows
### Checking out the repo
```ps
git clone --bare https://git.theflyingfool.com/theflyingfool/dotfiles.git $HOME/.dot
if (!(Test-Path -Path $PROFILE)) {
# Create the profile
New-Item -Type File -Path $PROFILE -Force
}
"`nfunction dot { & git --git-dir=`"$HOME/.dot/`" --work-tree=`"$HOME`" @args }" | Out-File -Append $PROFILE
. $PROFILE
dot checkout
dot config --local status.showUntrackedFiles no
``` ```