From b451a80b5767bb4849208db659ddf506e8090e12 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 23 Sep 2025 21:09:05 +0200 Subject: Minor fixes --- README.md | 67 +++++++++++++++++++++------------------------------------------ 1 file changed, 22 insertions(+), 45 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 34d96d5..776bbc8 100644 --- a/README.md +++ b/README.md @@ -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/\/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/\/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 +``` ---
-- cgit v1.2.3