feat(zsh): modularize Zsh configuration with environment variables, aliases, functions, and plugins

- Create a new Zsh configuration structure under ~/.config/zsh
- Add main .zshrc file to load configurations and plugins
- Implement environment variables in env.zsh
- Define aliases for common commands in aliases.zsh
- Set up completion settings in completion.zsh
- Add custom functions for navigation, file handling, and process management in functions.zsh
- Configure keybindings in keybindings.zsh
- Set shell options in options.zsh
- Load plugins using Zinit in plugins.zsh
- Configure prompt settings in prompt.zsh
- Create a .zshenv file to set ZDOTDIR for Zsh configuration directory
This commit is contained in:
Dmitry
2026-02-17 10:53:02 +03:00
commit 7a895403cd
29 changed files with 6387 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
# ════════════════════════════════════════════════════════════
# SSH Configuration (includes)
# ════════════════════════════════════════════════════════════
# Все настройки вынесены по секциям в config.d/*.conf
# Порядок загрузки задаётся префиксом (00-, 10-, 20- ...)
Include config.d/*.conf
+17
View File
@@ -0,0 +1,17 @@
# 00 - Global options
Host *
# Переиспользование соединений (быстрее)
# ControlMaster auto
# ControlPath ~/.ssh/sockets/%r@%h:%p
# ControlPersist 10m
# Держать соединение живым
ServerAliveInterval 60
ServerAliveCountMax 3
# Сжатие данных
Compression yes
# Отключить GSSAPI (ускоряет подключение)
GSSAPIAuthentication no
+13
View File
@@ -0,0 +1,13 @@
# 10 - Local network (direct IP)
# ПК
Host ada-pc
HostName 192.168.1.100
User ada
IdentityFile ~/.ssh/id_ed25519
Host ada-x1
HostName 192.168.1.101
User ada
IdentityFile ~/.ssh/id_ed25519
+21
View File
@@ -0,0 +1,21 @@
# 20 - SelfHost
Host vps vps-ada
HostName 157.22.231.198
Port 22
User root
IdentityFile ~/.ssh/id_ed25519_homelab
# Gitea
Host git.ada-dev.ru
HostName 192.168.1.10
User git
Port 2222
IdentityFile ~/.ssh/id_ed25519_homelab
ProxyJump vps
# ZimaOS
Host home zima
HostName 192.168.1.10
User ada
IdentityFile ~/.ssh/id_ed25519_homelab
SetEnv TERM=xterm-256color
+51
View File
@@ -0,0 +1,51 @@
# 40 - Corporate (PAO IL)
Host ada-alt
HostName 127.0.0.1
User ada-alt
Port 3322
IdentityFile ~/.ssh/id_ed25519
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Host pam
HostName 10.1.194.230
User antipenkoda@MSK.LAN
Port 2244
ProxyJump ada-alt
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Host master-ans
HostName 10.1.194.160
User ada
IdentityFile /home/ada/.ssh/id_ed25519_ada
ProxyJump pam
LocalForward 9000 localhost:22
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
Host master-ans-direct
HostName localhost
Port 9000
User ada
SetEnv TERM=xterm-256color
Host gitea
HostName 10.1.194.243
User gitea
IdentityFile ~/.ssh/id_ed25519_ada
ProxyJump pam
Host devel.mephi.ru
HostName devel.mephi.ru
IdentityFile ~/.ssh/id_ed25519_ada
KexAlgorithms +curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519
+23
View File
@@ -0,0 +1,23 @@
Host ru-vps
HostName 157.22.231.198
User ada
IdentityFile ~/.ssh/id_ed25519
ServerAliveInterval 30
ServerAliveCountMax 3
Host nl-vps
HostName 170.168.25.171
User ada
IdentityFile ~/.ssh/id_ed25519
ProxyJump ru-vps
ServerAliveInterval 30
ServerAliveCountMax 3
Host fl-vps
HostName 89.167.32.245
Port 4322
User ada
IdentityFile ~/.ssh/id_ed25519_flvpn
ProxyJump ru-vps
ServerAliveInterval 30
ServerAliveCountMax 3