diff options
| author | srdusr <trevorgray@srdusr.com> | 2025-09-23 21:09:05 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2025-09-23 21:09:05 +0200 |
| commit | b451a80b5767bb4849208db659ddf506e8090e12 (patch) | |
| tree | 4ddfc9d93e4e79574df95e03f00c4dee5d793be8 /README.md | |
| parent | 57403da32da78683b7509f66058d7d334dfb5e58 (diff) | |
| download | dotfiles-b451a80b5767bb4849208db659ddf506e8090e12.tar.gz dotfiles-b451a80b5767bb4849208db659ddf506e8090e12.zip | |
Minor fixes
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 67 |
1 files changed, 22 insertions, 45 deletions
@@ -42,31 +42,6 @@ Linux: --- -## Usage Examples - -### Adding Files to Your Dotfiles - -```bash -# Add a config file explicitly to the common directory in the repo -config add --target common .bashrc - -# Add with a specific target directory -config add --target windows/Documents/PowerShell ~/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 - -# Windows: -config add --target windows/Documents/PowerShell "$env:USERPROFILE\Documents\PowerShell\Microsoft.PowerShell_profile.ps1" - -# Linux WSL or Git Bash: -config add --target windows/Documents/PowerShell /mnt/c/Users/\<User\>/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 - -# Add multiple files at once (each will be mapped appropriately) -config add ~/.vim .tmux.conf # Will go to OS's home - -# Add files outside of home -config add --target linux/etc /etc/issue - -``` - ## Installation Methods ### Method 1: Shell Scripts (Recommended) @@ -106,12 +81,6 @@ ansible-playbook -i inventory.yml playbook.yml -e dotfiles_profile=dev ansible-playbook -i inventory.yml playbook.yml --limit linux ``` -**Note:** Both installation methods include: -- System hardening and security configurations -- Kernel/OS/distribution update checking -- Profile-based package installation -- Development environment setup - ### Method 3: Installing onto a new system (Manual) 1. Avoid weird behaviour/recursion issues when `.cfg` tries to track itself @@ -742,30 +711,38 @@ config config --local status.showUntrackedFiles no config deploy ``` +**Note:** All installation methods include: +- System hardening and security configurations +- Kernel/OS/distribution update checking +- Profile-based package installation +- Development environment setup --- -### Auto-installer +## Usage Examples -Linux/macOS (one-liner): +### Adding Files to Your Dotfiles -```sh -sh -c "$(curl -fsSL https://raw.githubusercontent.com/srdusr/dotfiles/main/common/install.sh)" -``` +```bash +# Add a config file explicitly to the common directory in the repo +config add --target common .bashrc -Windows PowerShell (one-liner): +# Add with a specific target directory +config add --target windows ~/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 -```powershell -Set-ExecutionPolicy Bypass -Scope Process -Force; irm 'https://raw.githubusercontent.com/srdusr/dotfiles/main/windows/Documents/PowerShell/bootstrap.ps1' | iex -``` +# Windows: +config add --target windows "$env:USERPROFILE\Documents\PowerShell\Microsoft.PowerShell_profile.ps1" -Windows CMD (.bat alternative): +# Linux WSL or Git Bash: +config add --target windows /mnt/c/Users/\<User\>/Documents/PowerShell/Microsoft.PowerShell_profile.ps1 -```bat -REM From the cloned repo, run the batch installer (if present): -call windows\Documents\install.bat -``` +# Add multiple files at once (each will be mapped appropriately) +config add ~/.vim .tmux.conf # Will go to OS's home + +# Add files outside of home +config add --target linux/etc /etc/issue +``` --- <details> |
