From 9efcb19038851085f1cc8c8ae489740b8db5e6f9 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:37 +0100 Subject: style: silence false-positive lint warnings Inline directives for cases where the linter's shell/language dialect doesn't match reality: - init.lua: _G.P helper is intentional - dot_zprofile: zsh tied arrays, $+commands, optional sourcing - dot_zshrc: zsh brace-group-as-function-body - ipython_config: 'c' is injected by IPython at load time - doasedit: /bin/sh on Arch is bash, -O test is supported --- dot_config/zsh/dot_zprofile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dot_config/zsh/dot_zprofile') diff --git a/dot_config/zsh/dot_zprofile b/dot_config/zsh/dot_zprofile index 30b5b21..32b9245 100644 --- a/dot_config/zsh/dot_zprofile +++ b/dot_config/zsh/dot_zprofile @@ -7,6 +7,7 @@ __ZPROFILE_SOURCED=1 # ── PATH ────────────────────────────────────────────────────────────────────── typeset -U path # deduplicate PATH entries +# shellcheck disable=SC2206 # zsh tied array; no word-splitting concerns path=("$HOME/.local/bin" "$HOME/.local/share/nvim/mason/bin" $path) # ── XDG Base Directories ───────────────────────────────────────────────────── @@ -40,7 +41,8 @@ export LESS="-F --RAW-CONTROL-CHARS" # ── GPG / SSH ───────────────────────────────────────────────────────────────── unset SSH_AGENT_PID -export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +export SSH_AUTH_SOCK # ── FZF ─────────────────────────────────────────────────────────────────────── export FZF_DEFAULT_COMMAND="fd --type file --follow --hidden --exclude .git --color=always" @@ -102,11 +104,13 @@ case $(uname -n) in ;; hercules) export OCL_ICD_VENDORS=nvidia + # shellcheck disable=SC1091 # optional, loaded only on hosts that have it [[ -r "$XDG_CONFIG_HOME/sh/work-envrc" ]] && source "$XDG_CONFIG_HOME/sh/work-envrc" ;; esac # ── Secrets (from pass) ────────────────────────────────────────────────────── +# shellcheck disable=SC2154,SC2155 # zsh $+commands / $( ) export idiom (( $+commands[pass] )) && export FIRECRAWL_API_KEY="$(pass show copilot/firecrawl-api-key)" # ── Auto-start sway on VT1 ──────────────────────────────────────────────────── -- cgit v1.2.3-70-g09d2