Форматирование кода

This commit is contained in:
2026-04-11 12:53:17 +03:00
parent 3f74fb6dc5
commit c028c626cf
12 changed files with 39 additions and 29 deletions

16
.editorconfig Normal file
View File

@@ -0,0 +1,16 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[[shell]]
indent_style = tab
indent_size = 4
shell_variant = bash
switch_case_indent = true
space_redirects = true
keep_padding = true
function_next_line = true

3
.zshrc
View File

@@ -15,7 +15,6 @@ stages=(
45-plugins
55-agents
62-scripts
65-vpy
68-aliases
72-widgets
78-keybindings
@@ -35,7 +34,7 @@ for S in "${stages[@]}"; do
done
done
unset stages S N F
unset stages S
mkdir -p "$ZDOTDIR/apps.d"
find "$ZDOTDIR/apps.d" -name "*.zsh" -print0 | sort -z | while IFS= read -r -d $'\0' app; do source "$app"; done

View File

@@ -27,4 +27,3 @@ fi
# Подсветка вывода основных команд
if [[ -r /etc/grc.zsh ]]; then source /etc/grc.zsh; fi

View File

@@ -21,4 +21,3 @@ setopt HIST_SAVE_NO_DUPS # Don't write duplicate entries in the history
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry.
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
setopt HIST_BEEP # Beep when accessing nonexistent history.

View File

@@ -100,4 +100,3 @@ fi
if command -v kitty > /dev/null 2>&1; then
zinit light redxtech/zsh-kitty
fi

View File

@@ -3,4 +3,3 @@
# [Esc] [Esc]
bindkey '\e\e' send-break

View File

@@ -1,3 +1,2 @@
# shellcheck shell=bash
# vim: ft=sh

View File

@@ -1,8 +1,7 @@
# shellcheck shell=bash
# vim: ft=sh
if command -v bat >/dev/null; then
! command -v bat > /dev/null && return
export PAGER=bat
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi

View File

@@ -1,6 +1,7 @@
# shellcheck shell=bash
# vim: ft=sh
! command -v dotdrop > /dev/null && return
if command -v eget > /dev/null; then
EGET_CONFIG="$XDG_CONFIG_HOME/eget/eget.toml"
[ -r "$XDG_CONFIG_HOME/eget/eget.toml" ] && export EGET_CONFIG

View File

@@ -12,4 +12,3 @@ if [[ -n ${ENABLE_INTEL_STUDIO+set} ]]; then
if [ -r "$f" ]; then source "$f" > /dev/null; fi
done
fi

View File

@@ -1,8 +1,7 @@
# shellcheck shell=bash
# vim: ft=sh
if command -v uncrustify >/dev/null; then
! command -v uncrustify > /dev/null && return
UNCRUSTIFY_CONFIG="${XDG_CONFIG_HOME}/uncrustify/uncrustify.cfg"
[ -r "${UNCRUSTIFY_CONFIG}" ] && export UNCRUSTIFY_CONFIG
fi

View File

@@ -2,7 +2,8 @@
# Установка файла описания терминала kitty на системы,
# где отсутствует пакет kitty-terminfo
fix-kitty-terminal-support() {
fix-kitty-terminal-support()
{
mkdir -p $HOME/.terminfo/x
curl -fsSL https://github.com/kovidgoyal/kitty/raw/master/terminfo/x/xterm-kitty > $HOME/.terminfo/x/xterm-kitty
}
@@ -11,7 +12,8 @@ fix-kitty-terminal-support() {
# Необходимо закрыть все экземпляры mc для текущего пользователя
# При вызове функции с параметром -f текущие настройки клавиш
# для работы mc в терминале kitty будут перезаписаны
fix-mc-kitty-support() {
fix-mc-kitty-support()
{
local cfg="${HOME}/.config/mc/ini"
[[ "$1" == "-f" ]] && sed -i '/\[terminal:xterm-kitty\]/,/^$/{d}' "${cfg}"
@@ -25,8 +27,8 @@ fix-mc-kitty-support() {
}
# Новые версии плагинов для поиска используют функционал fzf версии 0.54.1.
fix-update-fzf() {
fix-update-fzf()
{
mkdir -p $HOME/bin
wget -O- https://github.com/junegunn/fzf/releases/download/v0.54.1/fzf-0.54.1-linux_amd64.tar.gz | tar -zxf - -C $HOME/bin
}