File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,14 @@ function _load_compinit() {
150150 _comp_options+=(globdots) # tab complete hidden files
151151}
152152
153+ function _load_prompt() {
154+ # Try to load prompts immediately
155+ if ! source ${ZDOTDIR} /prompt.zsh > /dev/null 2>&1 ; then
156+ [[ -f $ZDOTDIR /conf.d/hyde/prompt.zsh ]] && source $ZDOTDIR /conf.d/hyde/prompt.zsh
157+ fi
158+
159+ }
160+
153161# ? Override this environment variable in ~/.zshrc
154162# cleaning up home folder
155163# ZSH Plugin Configuration
183191
184192_load_compinit
185193
186- # Try to load prompts immediately
187- if ! source ${ZDOTDIR} /prompt.zsh & > /dev/null; then
188- [[ -f $ZDOTDIR /conf.d/hyde/prompt.zsh ]] && source $ZDOTDIR /conf.d/hyde/prompt.zsh
189- fi
190194
191195if [[ ${HYDE_ZSH_NO_PLUGINS} == " 1" ]]; then
192196 # Deduplicate omz plugins()
193197 _dedup_zsh_plugins
194198
195199 if [[ " $HYDE_ZSH_OMZ_DEFER " == " 1" ]]; then
196200 _load_deferred_plugin_system_by_hyde
201+ _load_prompt # This disables transient prompts sadly
197202 else
198203 [[ -r $ZSH /oh-my-zsh.sh ]] && source $ZSH /oh-my-zsh.sh
204+ _load_prompt
199205 _load_common
206+
200207 fi
201208fi
202209
210+
203211alias c=' clear' \
204212 in=' ${PM_COMMAND[@]} install' \
205213 un=' ${PM_COMMAND[@]} remove' \
Original file line number Diff line number Diff line change 11# Add you own custom prompt here
22
3- return 1 # TODO <--- Uncomment this line to disable HyDE's prompt
3+ return 1 # TODO <--- Comment out or REMOVE this line to disable HyDE's prompt
44#! As long as this file returns non-zero, HyDE will ignore this file!
5+ #! return 0 will lead to no prompt being loaded
56
67# ================================================================
78# Your custom prompt goes here
You can’t perform that action at this time.
0 commit comments