8000 GitHub - atty303/dotfiles: My dev env for Mac/Linux/Windows on Native/Container/Headless at Personal/Work
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

My dev env for Mac/Linux/Windows on Native/Container/Headless at Personal/Work

Notifications You must be signed in to change notification settings

atty303/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bootstrap Instructions

Linux Setup

sh -c "$(curl -fsLS get.chezmoi.io)" -- -b ~/.local/bin init --apply atty303

Windows Setup Guide

Prerequisites

  • Windows 11 24H2 or later
  • PowerShell 5.1 or later

Installation Steps

  1. Allow create symbolic link:

    • Press Windows + R
    • Run gpedit.mac
    • Navigate to Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment
    • Edit Create symbolic links
    • Add your account
    • Logout or Reboot
  2. Open Windows Terminal:

    • Press Windows + X
    • Select "Windows Terminal (Administrator)"
  3. Install and configure chezmoi:

    New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Sudo" -Name "Enabled" -Value 3 -PropertyType DWORD -Force
    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
    iex "&{$(irm 'https://get.chezmoi.io/ps1')} -b ~/.local/bin -- init --apply atty303"
  4. Configure Atuin shell history:

    atuin login -u atty303
    atuin sync

Out-of-scope of chezmoi

  • 1Password
    • Configure manually
  • Zen
    • Sync with Mozilla Account
  • ATOK

Notes

  • Ensure all commands are executed in order
  • Administrative privileges may be required
  • Wait for each command to complete before proceeding to the next

Memo

chezmoi templates cheatsheet

https://www.chezmoi.io/reference/templates/

  • Trimming: "{{23 -}} < {{- 45}}" -> 23<45
  • Conditionals: {{if pipeline}} T1 {{end}}, {{if pipeline}} T1 {{else}} T0 {{end}}, {{if pipeline}} T1 {{else if pipeline}} T0 {{end}}
  • Iteration: {{range pipeline}} {{.}} {{end}}, {{range pipeline}} T1 {{else}} T0 {{end}}
  • {{with pipeline}} T1 {{end}}: if (pipeline) { . = pipeline; T1 }
  • Functions:

About

My dev env for Mac/Linux/Windows on Native/Container/Headless at Personal/Work

Topics

Resources

Stars

Watchers

Forks

0