-
Notifications
You must be signed in to change notification settings - Fork 1
/
.chezmoiignore
136 lines (136 loc) · 3.59 KB
/
.chezmoiignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{{- $ignore_config := include "ignore_config.yml" | fromYaml -}}
ignore_config.yml
symlinks
LICENSE
README.md
update_secrets*
update_config*
install-caddy.sh
{{- if .is.windows }}
*
!.gitconfig
!.ssh
!.ssh/config
!.vimrc
!AppData
!Documents
.ssh/*.pub
{{- else }}
{{- if not .is.mac }}
Library/
.local/bin/tilde-switch*
{{- else }}
.config/chrome-flags*.conf
.config/chromium-flags*.conf
.config/electron-flags*.conf
.config/spotify-flags*.conf
.local/bin/*-sshfs
.local/bin/*-wait-online
.local/bin/code
.local/bin/discord
.local/bin/self-mon
.local/bin/slack
.local/bin/start-gui
.local/bin/xorg-*
Library/Preferences/com.googlecode.iterm2.plist
{{- end }} {{/* if not .is.mac */}}
AppData/
Documents/
{{- if or .is.mac .is.wsl .is.root (and (not .is.desktop) (not .is.laptop)) }}
# Ignore GUI app config files when not desktop or laptop
.config/autostart
.config/electron-flags*.conf
.config/mimeapps.list
.config/systemd
.config/tmuxinator/htop-journal.yml
.fonts
.local/bin/*mount-c
.local/bin/make-x11-wayland-links
.local/bin/my-screenlock
.local/bin/pavolume
.local/share/applications
.xinitrc
.xprofile
.Xresources
{{- end }} {{/* if or .is.mac .is.wsl .is.root (and (not .is.desktop) (not .is.laptop)) */}}
{{- if or .is.wsl .is.root (not (eq .session_desktop "gnome")) }}
.config/environment.d
{{- end }} {{/* if or .is.wsl (not (eq .session_desktop "gnome")) */}}
{{- if or .is.wsl .is.server (not (eq .session_desktop "i3" "sway")) }}
.config/mimeapps.list
.config/override
.config/systemd/user/auto-lock.service
.config/systemd/user/dunst.service
.config/systemd/user/nextcloud.service
.local/bin/*-launch
.local/bin/auto-lock
.local/bin/i3*
.local/bin/my-screenlock
.local/bin/pavolume
.local/bin/rofi*
.local/bin/start-gui
.local/bin/sway*
.local/bin/xorg*
.xinitrc
.xprofile
.Xresources
{{- else }}
.config/autostart
{{- end }} {{/* if or .is.wsl .is.server (not (eq .session_desktop "i3" "sway")) */}}
{{- $is_root := .is.root -}}
{{- range $v := $ignore_config }}
{{- if and $is_root $v.skip_root }}
{{ $v.path | join "\n" }}
{{- else }}
{{- $found_exec := false -}}
{{- if eq (printf "%T" $v.exec) "string" -}}
{{- $found_exec = lookPath $v.exec -}}
{{- else -}}
{{- range $e := $v.exec -}}
{{- $found_exec = or $found_exec (lookPath $e) -}}
{{- end -}}{{/* range $e := $v.exec */}}
{{- end -}} {{/* if eq (printf "%T" $v.exec) "string" */}}
{{- $exec := $v.exec | join "\n" -}}
{{- if not $found_exec }}
{{ $v.path | join "\n" }}
{{- end }} {{/* if not $found_exec */}}
{{- end }} {{/* if and $is_root $v.skip_root */}}
{{- end }} {{/* range $v */}}
{{- if or (not .is.desktop) .is.wsl .is.mac }}
# Ignore desktop config on laptop and server
.local/bin/*mount-c
.local/bin/bar/aquaero*
{{- end }} {{/* if or (not .is.desktop) .is.wsl .is.mac */}}
{{- if or .is.root .is.desktop .is.laptop .is.mac .is.wsl }}
.ssh/*.pub
{{- end }} {{/* if or .is.root (not (not .is.desktop)) (not (not .is.laptop)) .is.mac .is.wsl */}}
{{- if .is.root }}
.gnupg
{{- end }} {{/* if .is.root */}}
{{- if or .is.root (not (lookPath "nvidia-smi")) }}
.local/bin/bar/nvidia*
{{- end }}
{{- if (not (lookPath "nvtop")) }}
.config/tmuxinator/hnvtop.yml
.config/tmuxinator/hjn.yml
{{- end }}
{{- if or .is.root (not .ssh.include_work) }}
.local/share/applications/*work*
.config/autorandr/*work*
.config/systemd/user/ws*
.ssh/config_work
.gitconfig_work
{{- end }}
{{- if or (.is.root) (not (lookPath "radeontop")) }}
.config/tmuxinator/hjr.yml
{{- end }}
{{- if not (or (lookPath "polybar") (lookPath "waybar")) }}
.local/bin/bar
{{- end }}
{{- end }} {{/* if .is.windows */}}
{{- if .is.wsl }}
.local/bin/code
.local/bin/discord
.local/bin/google-chrome*
.local/bin/slack
{{- end }}