small updates & switched to zen browser
This commit is contained in:
@@ -12,17 +12,17 @@
|
||||
# And ensures that we have an obstruction-free .zshrc file
|
||||
# This also ensures that the proper HyDE $ENVs are loaded
|
||||
|
||||
function _load_common() {
|
||||
|
||||
function _load_functions() {
|
||||
# Load all custom function files // Directories are ignored
|
||||
for file in "${ZDOTDIR:-$HOME/.config/zsh}/functions/"*.zsh; do
|
||||
[ -r "$file" ] && source "$file"
|
||||
done
|
||||
}
|
||||
|
||||
function _load_completions() {
|
||||
for file in "${ZDOTDIR:-$HOME/.config/zsh}/completions/"*.zsh; do
|
||||
[ -r "$file" ] && source "$file"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
function _dedup_zsh_plugins {
|
||||
@@ -53,8 +53,8 @@ function _defer_omz_after_prompt_before_input() {
|
||||
fpath=($ZDOTDIR/completions "${fpath[@]}")
|
||||
|
||||
_load_compinit
|
||||
|
||||
_load_common
|
||||
_load_functions
|
||||
_load_completions
|
||||
|
||||
# zsh-autosuggestions won't work on first prompt when deferred
|
||||
if typeset -f _zsh_autosuggest_start >/dev/null; then
|
||||
@@ -152,19 +152,18 @@ function _load_compinit() {
|
||||
|
||||
function _load_prompt() {
|
||||
# Try to load prompts immediately
|
||||
if ! source ${ZDOTDIR}/prompt.zsh > /dev/null 2>&1; then
|
||||
[[ -f $ZDOTDIR/conf.d/hyde/prompt.zsh ]] && source $ZDOTDIR/conf.d/hyde/prompt.zsh
|
||||
fi
|
||||
|
||||
if ! source ${ZDOTDIR}/prompt.zsh > /dev/null 2>&1; then
|
||||
[[ -f $ZDOTDIR/conf.d/hyde/prompt.zsh ]] && source $ZDOTDIR/conf.d/hyde/prompt.zsh
|
||||
fi
|
||||
}
|
||||
|
||||
#? Override this environment variable in ~/.zshrc
|
||||
# Override this environment variable in ~/.zshrc
|
||||
# cleaning up home folder
|
||||
# ZSH Plugin Configuration
|
||||
|
||||
HYDE_ZSH_DEFER="1" #Unset this variable in $ZDOTDIR/user.zsh to disable HyDE's deferred Zsh loading.
|
||||
HYDE_ZSH_PROMPT="1" #Unset this variable in $ZDOTDIR/user.zsh to disable HyDE's prompt customization.
|
||||
HYDE_ZSH_NO_PLUGINS="1" #Unset this variable in $ZDOTDIR/user.zsh to disable HyDE's deferred Zsh loading.
|
||||
HYDE_ZSH_NO_PLUGINS="0" #Set this variable to "1" in $ZDOTDIR/user.zsh to disable HyDE's Zsh plugin loading.
|
||||
|
||||
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
||||
|
||||
@@ -192,7 +191,7 @@ fi
|
||||
_load_compinit
|
||||
|
||||
|
||||
if [[ ${HYDE_ZSH_NO_PLUGINS} == "1" ]]; then
|
||||
if [[ ${HYDE_ZSH_NO_PLUGINS} != "1" ]]; then
|
||||
# Deduplicate omz plugins()
|
||||
_dedup_zsh_plugins
|
||||
|
||||
@@ -202,11 +201,17 @@ if [[ ${HYDE_ZSH_NO_PLUGINS} == "1" ]]; then
|
||||
else
|
||||
[[ -r $ZSH/oh-my-zsh.sh ]] && source $ZSH/oh-my-zsh.sh
|
||||
_load_prompt
|
||||
_load_common
|
||||
|
||||
_load_functions
|
||||
_load_completions
|
||||
fi
|
||||
fi
|
||||
else
|
||||
_load_prompt
|
||||
_load_functions
|
||||
_load_completions
|
||||
|
||||
chmod +r $ZDOTDIR/.zshrc # Make sure .zshrc is readable
|
||||
[[ -r $ZDOTDIR/.zshrc ]] && source $ZDOTDIR/.zshrc
|
||||
fi
|
||||
|
||||
alias c='clear' \
|
||||
in='${PM_COMMAND[@]} install' \
|
||||
|
Reference in New Issue
Block a user