Skip to content

Commit 31ea268

Browse files
committed
2 parents d2195cb + 9c9249b commit 31ea268

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

Configs/.config/zsh/conf.d/hyde/terminal.zsh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff 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
@@ -183,23 +191,23 @@ fi
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

191195
if [[ ${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
201208
fi
202209

210+
203211
alias c='clear' \
204212
in='${PM_COMMAND[@]} install' \
205213
un='${PM_COMMAND[@]} remove' \

Configs/.config/zsh/prompt.zsh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
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

0 commit comments

Comments
 (0)