.p10k.zsh: 調整架構,因應Server環境專用,與日常用的設定檔切開
This commit is contained in:
parent
7dec36dfeb
commit
ffd36e6859
@ -1,5 +1,6 @@
|
|||||||
{{- $name := promptStringOnce . "name" "請輸入您的姓名" -}}
|
{{- $name := promptStringOnce . "name" "請輸入您的姓名" -}}
|
||||||
{{- $email := promptStringOnce . "email" "輸入您的Email地址" -}}
|
{{- $email := promptStringOnce . "email" "輸入您的Email地址" -}}
|
||||||
|
{{- $isServer := promptBoolOnce . "isServer" "Does this machine is Server" -}}
|
||||||
{{- $hasGUI := promptBoolOnce . "hasGUI" "Does this machine have a GUI" -}}
|
{{- $hasGUI := promptBoolOnce . "hasGUI" "Does this machine have a GUI" -}}
|
||||||
{{- $enableYcm := promptBoolOnce . "enableYcm" "是否要啟用Vim YCM compatible功能(會佔用2.7GB)" -}}
|
{{- $enableYcm := promptBoolOnce . "enableYcm" "是否要啟用Vim YCM compatible功能(會佔用2.7GB)" -}}
|
||||||
sourceDir = "~/.local/share/chezmoi"
|
sourceDir = "~/.local/share/chezmoi"
|
||||||
@ -7,5 +8,6 @@ sourceDir = "~/.local/share/chezmoi"
|
|||||||
[data]
|
[data]
|
||||||
name = {{ $name | quote }}
|
name = {{ $name | quote }}
|
||||||
email = {{ $email | quote }}
|
email = {{ $email | quote }}
|
||||||
|
serverStyle = {{ $isServer }}
|
||||||
noGUI = {{ not $hasGUI }}
|
noGUI = {{ not $hasGUI }}
|
||||||
enableYcm = {{ $enableYcm }}
|
enableYcm = {{ $enableYcm }}
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
os_icon # os identifier
|
os_icon # os identifier
|
||||||
context # user@hostname
|
context # user@hostname
|
||||||
dir # current directory
|
dir # current directory
|
||||||
|
dir_writable
|
||||||
vcs # git status
|
vcs # git status
|
||||||
# prompt_char # prompt symbol
|
# prompt_char # prompt symbol
|
||||||
)
|
)
|
1720
.p10k_server.zsh
Normal file
1720
.p10k_server.zsh
Normal file
File diff suppressed because it is too large
Load Diff
5
dot_p10k.zsh.tmpl
Normal file
5
dot_p10k.zsh.tmpl
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{{- if .serverStyle -}}
|
||||||
|
{{- include ".p10k_server.zsh" -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- include ".p10k.zsh" -}}
|
||||||
|
{{- end -}}
|
Loading…
x
Reference in New Issue
Block a user