質問編集履歴

1

.zshrcの中身を追加

2021/06/17 09:07

投稿

DISK131
DISK131

スコア1

test CHANGED
File without changes
test CHANGED
@@ -83,3 +83,79 @@
83
83
  source ~/powerlevel10k/powerlevel10k.zsh-theme
84
84
 
85
85
  ```
86
+
87
+ .zshrcの中身
88
+
89
+ ```
90
+
91
+ # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
92
+
93
+ # Initialization code that may require console input (password prompts, [y/n]
94
+
95
+ # confirmations, etc.) must go above this block; everything else may go below.
96
+
97
+ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
98
+
99
+ source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
100
+
101
+ fi
102
+
103
+ # 中略
104
+
105
+ ### Added by Zinit's installer
106
+
107
+ if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
108
+
109
+ print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
110
+
111
+ command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
112
+
113
+ command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \
114
+
115
+ print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
116
+
117
+ print -P "%F{160}▓▒░ The clone has failed.%f%b"
118
+
119
+ fi
120
+
121
+
122
+
123
+ source "$HOME/.zinit/bin/zinit.zsh"
124
+
125
+ autoload -Uz _zinit
126
+
127
+ (( ${+_comps} )) && _comps[zinit]=_zinit
128
+
129
+
130
+
131
+ # Load a few important annexes, without Turbo
132
+
133
+ # (this is currently required for annexes)
134
+
135
+ zinit light-mode for \
136
+
137
+ zinit-zsh/z-a-rust \
138
+
139
+ zinit-zsh/z-a-as-monitor \
140
+
141
+ zinit-zsh/z-a-patch-dl \
142
+
143
+ zinit-zsh/z-a-bin-gem-node
144
+
145
+
146
+
147
+ ### End of Zinit's installer chunk
148
+
149
+
150
+
151
+ echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme'
152
+
153
+ zinit ice depth=1; zinit light romkatv/powerlevel10k
154
+
155
+
156
+
157
+ # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
158
+
159
+ [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
160
+
161
+ ```