diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-06-04 13:44:49 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-06-04 13:44:49 +0200 |
| commit | d08ffe06f9a79b49d89139d1ac7c5cc10fc72edb (patch) | |
| tree | c2adb0294252f10b87dc6506aec2c8bda15a1f52 /README.md | |
| parent | 79a21ec07b97858941c2f87b47907d870f4eea54 (diff) | |
| download | dotfiles-d08ffe06f9a79b49d89139d1ac7c5cc10fc72edb.tar.gz dotfiles-d08ffe06f9a79b49d89139d1ac7c5cc10fc72edb.zip | |
Add information on installing onto windows
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -50,15 +50,29 @@ $ echo ".cfg" >> .gitignore 2. Clone this repo ```bash +# bash $ git clone --bare https://github.com/srdusr/dotfiles.git $HOME/.cfg ``` +```ps1 +# ps1 (Windows) +# Clone the dotfiles repository into ~/.cfg (C:\Users\yourusername\.cfg) +git clone --bare https://github.com/srdusr/dotfiles.git $env:USERPROFILE/.cfg +git --git-dir=$HOME/.cfg --work-tree=$HOME checkout +``` + 3. Set up the alias 'config' ```bash +# bash $ alias config='git --git-dir=$HOME/.cfg --work-tree=$HOME' ``` +```ps1 +# ps1 (Windows) +echo '. "$HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1"' > $PROFILE +``` + 4. Set local configuration into .cfg to ignore untracked files ```bash @@ -73,6 +87,20 @@ $ config checkout --- +### Installing onto a new Windows system + +```ps1 +Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force; ` +Invoke-WebRequest "https://github.com/srdusr/dotfiles/archive/master.zip" ` +-OutFile "$HOME\Downloads\dotfiles.zip"; ` +Expand-Archive -Path "$HOME\Downloads\dotfiles.zip" -DestinationPath "$HOME" -Force; ` +Move-Item -Path "$HOME\dotfiles-master\*" -Destination "$HOME" -Force; ` +Remove-Item -Path "$HOME\dotfiles-master" -Recurse -Force; ` +Start-Process -FilePath "$HOME\install.bat" +``` + +- - - + ## Dependencies - curl |
