Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .chezmoidata/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ packages:
- zsh-autosuggestions
- zsh-syntax-highlighting
- fzf
# ripgrep and fd are required by the Neovim telescope config
# (live_grep needs rg; find_files uses fd when available)
- ripgrep
- fd
- bat
- git-delta
- starship
Expand Down
2 changes: 2 additions & 0 deletions .chezmoiscripts/run_once_20_install_nvm.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

export NVM_DIR="$HOME/.nvm"
Expand Down
2 changes: 2 additions & 0 deletions .chezmoiscripts/run_once_30_install_npm_globals.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -euo pipefail

# Load nvm so npm is available
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
Expand Down
2 changes: 2 additions & 0 deletions .chezmoiscripts/run_onchange_darwin-install-packages.sh.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{ if eq .chezmoi.os "darwin" -}}
#!/bin/bash

set -euo pipefail

{{ range .packages.darwin.taps -}}
brew tap {{ . | quote }}
brew trust {{ . | quote }}
Expand Down
9 changes: 6 additions & 3 deletions .chezmoiscripts/run_onchange_set_mac_os_defaults.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/bash

set -euo pipefail

# Configures various Mac OS default to my peferences.
# A list of Mac OS defaults can be found at https://macos-defaults.com/

# CI runners have no interactive login session, so osascript/System Events
# automation here would hang waiting on a TCC permission dialog nobody can
# click, and there's no real machine state worth changing on a throwaway VM.
if [ -n "$CI" ]; then
if [ -n "${CI:-}" ]; then
echo "Running in CI — skipping macOS defaults (requires an interactive GUI session)"
exit 0
fi
Expand Down Expand Up @@ -60,7 +62,8 @@ killall Dock
# Safari
defaults write -app Safari "ShowFullURLInSmartSearchField" -bool "true"

killall Safari 2>/dev/null
# killall fails when Safari isn't running, which is fine
killall Safari 2>/dev/null || true

# Finder
defaults write NSGlobalDomain "AppleShowAllExtensions" -bool "true"
Expand All @@ -74,7 +77,7 @@ defaults write NSGlobalDomain "NSToolbarTitleViewRolloverDelay" -float "0"
# Use list view by default
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Show the /Volumes folder
sudo chflags nohidden /Volumess
sudo chflags nohidden /Volumes

killall Finder

Expand Down
3 changes: 0 additions & 3 deletions dot_gitconfig.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@
[commit]
gpgsign = true

[url "http://github.com/"]
insteadOf = ssh://git@github.com/

[url "https://github.com/"]
insteadOf = git://github.com/

Expand Down
Loading