From 72bbfc56948debe7112e705e4f9b9a3e11ecde41 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sat, 11 Oct 2025 11:05:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=20uncrustify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zshenv | 4 ---- apps.d/uncrustify.zsh | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 apps.d/uncrustify.zsh diff --git a/.zshenv b/.zshenv index 7e9a17a..0301067 100644 --- a/.zshenv +++ b/.zshenv @@ -60,9 +60,5 @@ if command -v bat >/dev/null; then export MANPAGER="sh -c 'col -bx | bat -l man -p'" 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" diff --git a/apps.d/uncrustify.zsh b/apps.d/uncrustify.zsh new file mode 100644 index 0000000..7ec83e5 --- /dev/null +++ b/apps.d/uncrustify.zsh @@ -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 +