backup: 2026-04-11 13:47

This commit is contained in:
Dmitry
2026-04-11 13:47:41 +03:00
parent c4cc52f73d
commit 9285660f27
40 changed files with 193 additions and 3414 deletions
+14
View File
@@ -2,6 +2,8 @@
# Ada's Modular ZSH Configuration
# ════════════════════════════════════════════════════════════
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
# ═══ Powerlevel10k Instant Prompt ══════════════════════════
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
@@ -37,6 +39,7 @@ source "${ZSH_CONFIG_DIR}/functions.zsh" # Пользовательские
source "${ZSH_CONFIG_DIR}/keybindings.zsh" # Горячие клавиши
source "${ZSH_CONFIG_DIR}/prompt.zsh" # Настройка промпта (starship)
# ═══ Локальные настройки (опционально) ═════════════════════
# Для машинно-специфичных настроек
[[ -f "${ZSH_CONFIG_DIR}/local.zsh" ]] && source "${ZSH_CONFIG_DIR}/local.zsh"
@@ -48,6 +51,17 @@ source "${ZSH_CONFIG_DIR}/prompt.zsh" # Настройка промпта
[[ ! -f /home/ada/.config/zsh/.p10k.zsh ]] || source /home/ada/.config/zsh/.p10k.zsh
# Показываем fastfetch один раз уже после инициализации prompt'а.
if [[ -o interactive ]]; then
autoload -Uz add-zsh-hook
function _fastfetch_once() {
add-zsh-hook -d precmd _fastfetch_once
command fastfetch
}
add-zsh-hook precmd _fastfetch_once
fi
export NVM_DIR="$HOME/.config/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
+5 -2
View File
@@ -58,8 +58,11 @@ alias ports='netstat -tulanp'
alias localip="ip -4 addr show | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -v 127.0.0.1"
# Proxy
alias proxy-on='sshp-start && export http_proxy="http://127.0.0.1:1080" https_proxy="http://127.0.0.1:1080" HTTP_PROXY="http://127.0.0.1:1080" HTTPS_PROXY="http://127.0.0.1:1080" && echo "Proxy enabled"'
alias proxy-off='sshp-stop && unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY && echo "Proxy disabled"'
# Включение прокси (HTTP, HTTPS и SOCKS5h для DNS через прокси)
alias proxy-on='export http_proxy="http://127.0.0.1:2080" https_proxy="http://127.0.0.1:2080" ALL_PROXY="socks5://127.0.0.1:2080" all_proxy="socks5://127.0.0.1:2080" && echo "󰖟 Proxy enabled (127.0.0.1:2080)"'
# Полное отключение всех переменных прокси
alias proxy-off='unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY all_proxy ALL_PROXY && echo "󰖪 Proxy disabled"'
alias proxy-status='env | grep -i proxy'