Update README.md
Not 100% working but basic windows instructions added
This commit is contained in:
parent
3f52ce6857
commit
c155482690
19
README.md
19
README.md
@ -9,8 +9,7 @@ My dotfiles for both Arch Linux and Windows
|
||||
```sh
|
||||
git clone --bare gitea@git.theflyingfool.com:theflyingfool/dotfiles.git $HOME/.dot
|
||||
alias dot='/usr/bin/git --git-dir="$HOME/.dot/" --work-tree="$HOME"'
|
||||
dot checkout
|
||||
dot config --local status.showUntrackedFiles no
|
||||
|
||||
source ~/.zshrc
|
||||
```
|
||||
|
||||
@ -31,4 +30,20 @@ dot checkout
|
||||
dot add .zshrc
|
||||
dot commit -m "Update .zshrc"
|
||||
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
|
||||
```
|
Loading…
Reference in New Issue
Block a user