chezmoi 建立unRoot執行框架(執行內容尚未實做)
This commit is contained in:
@@ -1,21 +1,27 @@
|
||||
{{- $name := promptStringOnce . "name" "請輸入您的姓名" -}}
|
||||
{{- $email := promptStringOnce . "email" "輸入您的Email地址" -}}
|
||||
|
||||
{{- $hosttype_choices := list "desktop" "server" "manual" -}}
|
||||
{{- $hosttype_choices := list "desktop" "server" "unroot_server" "manual" -}}
|
||||
{{- $hosttype := promptChoice "What type of host are you on" $hosttype_choices -}}
|
||||
{{- $isServer := true -}}
|
||||
{{- $unRootMode := true -}}
|
||||
{{- $enableSixel := false -}}
|
||||
{{- $enableGUI := false -}}
|
||||
{{- $enableYcm := false -}}
|
||||
|
||||
{{- if eq $hosttype "desktop" -}}
|
||||
{{- if eq $hosttype "server" -}}
|
||||
{{- $unRootMode = false -}}
|
||||
|
||||
{{- else if eq $hosttype "desktop" -}}
|
||||
{{- $isServer = false -}}
|
||||
{{- $unRootMode = false -}}
|
||||
{{- $enableSixel = true -}}
|
||||
{{- $enableGUI = true -}}
|
||||
{{- $enableYcm = true -}}
|
||||
|
||||
{{- else if eq $hosttype "manual" -}}
|
||||
{{- $isServer = promptBool "Does this machine is Server" -}}
|
||||
{{- $unRootMode = promptBool "Is enable unRoot local mode (Will install at home directory)" -}}
|
||||
{{- $enableSixel = promptBool "Is enable terminal output with sixel" -}}
|
||||
{{- $enableGUI = promptBool "Does this machine have a GUI" -}}
|
||||
{{- $enableYcm = promptBool "Is enable Vim YCM compatible (Will use 2.7GB)" -}}
|
||||
@@ -27,6 +33,7 @@ sourceDir = "~/.local/share/chezmoi"
|
||||
name = {{ $name | quote }}
|
||||
email = {{ $email | quote }}
|
||||
serverStyle = {{ $isServer }}
|
||||
unRootMode = {{ $unRootMode }}
|
||||
enableSixel = {{ $enableSixel }} {{/* TODO: packages.toml還沒處理 */}}
|
||||
noGUI = {{ not $enableGUI }}
|
||||
enableYcm = {{ $enableYcm }}
|
||||
|
||||
Reference in New Issue
Block a user