small updates & switched to zen browser

This commit is contained in:
2025-07-17 10:19:18 +03:00
parent 5bf08de339
commit 83201ab5db
19 changed files with 227 additions and 6224 deletions

View File

@@ -8,7 +8,7 @@
#! ╚═════╝░░╚════╝░  ╚═╝░░╚══╝░╚════╝░░░░╚═╝░░░  ╚══════╝╚═════╝░╚═╝░░░╚═╝░░░
# Hyde's Shell Environment Initialization Script
# If users used UWSM, uwsm will override any variables set anywhere in you shell configurations
# If users used UWSM, uwsm will override any variables set anywhere in your shell configurations
# Basic PATH prepending (user local bin)
PATH="$HOME/.local/bin:$PATH"
@@ -38,6 +38,10 @@ LESSHISTFILE="${LESSHISTFILE:-/tmp/less-hist}"
# Application config files
PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
SCREENRC="$XDG_CONFIG_HOME/screen/screenrc"
TERMINFO="$XDG_DATA_HOME"/terminfo
TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
WGETRC="${XDG_CONFIG_HOME}/wgetrc"
PYTHON_HISTORY="$XDG_STATE_HOME/python_history"
# Export all variables
export PATH \

View File

@@ -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' \