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
11 changes: 0 additions & 11 deletions chezmoi/.chezmoiexternal.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,6 @@
url = "https://github.com/GitAlias/gitalias/raw/main/gitalias.txt"
refreshPeriod = "168h"

[".config/git/ignore"]
type = "file"
{{- if eq .chezmoi.os "darwin" }}
url = "https://github.com/github/gitignore/raw/main/Global/macOS.gitignore"
{{- else if eq .chezmoi.os "windows" }}
url = "https://github.com/github/gitignore/raw/main/Global/Windows.gitignore"
{{- else }}
url = "https://github.com/github/gitignore/raw/main/Global/Linux.gitignore"
{{- end }}
refreshPeriod = "168h"

{{- if .is_ephemeral }}
[".local/bin/fzf"]
type = "archive-file"
Expand Down
16 changes: 15 additions & 1 deletion chezmoi/.chezmoiscripts/run_before_brew_install.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ if ! command -v brew >/dev/null; then
done
fi

brew update

taps=(
oven-sh/bun
hashicorp/tap
atlassian/acli
databricks/tap
)

for tap in "${taps[@]}"; do
brew tap "$tap" 2>/dev/null || true
brew trust "$tap"
done

brew bundle install \
--force-cleanup --zap \
--file=/dev/stdin <<EOF
Expand Down Expand Up @@ -167,7 +181,7 @@ cask "rectangle"
# web
cask "adguard"
cask "brave-browser"
cask "firefox"
cask "firefox", args: { force: true }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using args: { force: true } for firefox will cause Homebrew to reinstall Firefox every time brew bundle is executed. Since this script runs on every chezmoi apply, this will significantly slow down your updates. Consider removing args: { force: true } unless there is a specific, unavoidable reason to force reinstallation.

cask "firefox"

# cask "microsoft-edge" # seems to required sudo everytime...

# communication
Expand Down
111 changes: 111 additions & 0 deletions chezmoi/private_dot_config/git/ignore.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{{ if eq .chezmoi.os "darwin" -}}

# General
.DS_Store
.localized
__MACOSX/
.AppleDouble
.LSOverride
Icon[
]

# Resource forks
._*

# Files and directories that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.com.apple.timemachine.supported
.PKInstallSandboxManager
.PKInstallSandboxManager-SystemSoftware
.hotfiles.btree
.vol
.file
.disk_label*
lost+found
.HFS+ Private Directory Data[
]

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Mac OS 6 to 9
Desktop DB
Desktop DF
TheFindByContentFolder
TheVolumeSettingsFolder
.FBCIndex
.FBCSemaphoreFile
.FBCLockFolder

# Quota system
.quota.group
.quota.user
.quota.ops.group
.quota.ops.user

# TimeMachine
Backups.backupdb
.MobileBackups
.MobileBackups.trash
MobileBackups.trash
tmbootpicker.efi

{{ else if eq .chezmoi.os "windows" -}}

# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

{{ else -}}

*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# Metadata left by Dolphin file manager, which comes with KDE Plasma
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# Log files created by default by the nohup command
nohup.out

{{- end }}

**/.claude/settings.local.json