Настройка uncrustify

This commit is contained in:
2025-10-11 11:05:38 +03:00
parent dc0ab74444
commit 72bbfc5694
2 changed files with 8 additions and 4 deletions

View File

@@ -60,9 +60,5 @@ if command -v bat >/dev/null; then
export MANPAGER="sh -c 'col -bx | bat -l man -p'" export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi fi
# Uncrustify
export UNCRUSTIFY_CONFIG="${XDG_CONFIG_HOME}/uncrustify/uncrustify.cfg"
[ ! -r "${UNCRUSTIFY_CONFIG}" ] && unset UNCRUSTIFY_CONFIG
[ -r "$ZDOTDIR/.zshenv.user" ] && source "$ZDOTDIR/.zshenv.user" [ -r "$ZDOTDIR/.zshenv.user" ] && source "$ZDOTDIR/.zshenv.user"

8
apps.d/uncrustify.zsh Normal file
View File

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