Skip to content

SVendittelli/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dot Files

pre-commit

My dot files for zsh, vim, tmux, etc.

Managed using chezmoi.

Installation

Linux

Install chezmoi using the correct package manager.

export PATH="$HOME/.local/bin/:$PATH"
chezmoi init SVendittelli
chezmoi apply ~/.local/bin/dcli
dcli sync
chezmoi apply ~/.keys
chezmoi apply

WSL

On Windows Subsystem for Linux you may additionally need to run these commands:

rustup default stable

macOS

Install homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install chezmoi and initialise:

brew install chezmoi
chezmoi init SVendittelli
chezmoi apply ~/.local/bin/dcli
dcli sync
chezmoi apply ~/.keys
chezmoi apply

Windows

It is highly recommended that you enable the "Turn off all unnecessary animations (when possible)" option in "Control Panel > Ease of Access > Ease of Access Centre / Make the computer easier to see" for the best performance with komorebi.

~ Komorebi Docs

In an administrator shell:

# Enable developer mode
Set-ItemProperty -Path "Registry::HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx"`
                 -Name "AllowDevelopmentWithoutDevLicense"`
                 -Type "DWord"`
                 -Value "1"

# Enable support for long windows paths
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem'`
                 -Name 'LongPathsEnabled'`
                 -Value 1

# Set the execution policy
Set-ExecutionPolicy remotesigned

# Temporarily add the user's bin directory to the path for the password manager
$Env:PATH += ";$Env:USERPROFILE\.local\bin"

# Trust the PSGallery repository
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

# Initialise chezmoi
chezmoi init SVendittelli
chezmoi apply ~/.local/bin/dcli.exe
dcli sync
chezmoi apply ~/.keys
chezmoi apply

Set up pre-commit

Run git hooks on commit and push using pre-commit:

chezmoi cd
pre-commit install
exit

Clear the state of all run_onchange_ and run_once_ scripts

chezmoi stores whether and when run_onchange_ and run_once_ scripts have been run in its persistent state.

To clear the state of run_onchange_ scripts, run:

just clear-run-on-change-state

To clear the state of run_once_ scripts, run:

just clear-run-once-state