chezmoi noGUI架構整理
This commit is contained in:
parent
58d51e4899
commit
c3730b43b7
@ -1,7 +1,9 @@
|
|||||||
{{- $name := promptStringOnce . "name" "請輸入您的姓名" -}}
|
{{- $name := promptStringOnce . "name" "請輸入您的姓名" -}}
|
||||||
{{- $email := promptStringOnce . "email" "輸入您的Email地址" -}}
|
{{- $email := promptStringOnce . "email" "輸入您的Email地址" -}}
|
||||||
|
{{- $hasGUI := promptBoolOnce . "hasGUI" "Does this machine have a GUI" -}}
|
||||||
sourceDir = "~/.local/share/chezmoi"
|
sourceDir = "~/.local/share/chezmoi"
|
||||||
|
|
||||||
[data]
|
[data]
|
||||||
name = {{ $name | quote }}
|
name = {{ $name | quote }}
|
||||||
email = {{ $email | quote }}
|
email = {{ $email | quote }}
|
||||||
|
noGUI = {{ not $hasGUI }}
|
||||||
|
@ -4,9 +4,23 @@ chezmoi.code-workspace
|
|||||||
|
|
||||||
dconf.ini
|
dconf.ini
|
||||||
|
|
||||||
|
{{/* ---- 沒有圖形界面 ---------------------------------------------------- */ -}}
|
||||||
|
{{ if .noGUI }}
|
||||||
|
.config/iterm2/
|
||||||
|
.config/alacritty
|
||||||
|
.config/neovide
|
||||||
|
.config/konsolerc
|
||||||
|
.local/share/konsole
|
||||||
|
dconf.ini
|
||||||
|
.gvimrc
|
||||||
|
|
||||||
|
{{/* ---- 有視窗應用程式 -------------------------------------------------- */ -}}
|
||||||
|
{{ else}}
|
||||||
|
|
||||||
|
{{/* ---- 處理特定os專用 */ -}}
|
||||||
{{ if ne .chezmoi.os "darwin" }}
|
{{ if ne .chezmoi.os "darwin" }}
|
||||||
.chezmoiscripts/run_onchange_before_darwin-install-packages.sh.tmpl
|
.chezmoiscripts/run_onchange_before_darwin-install-packages.sh.tmpl
|
||||||
.config/iterm2/com.googlecode.iterm2.plist
|
.config/iterm2
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if ne .chezmoi.os "linux" }}
|
{{ if ne .chezmoi.os "linux" }}
|
||||||
.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl
|
.chezmoiscripts/run_onchange_before_linux-install-packages.sh.tmpl
|
||||||
@ -19,3 +33,5 @@ dconf.ini
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
*.sh
|
*.sh
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user