diff options
| author | 2026-04-21 01:24:37 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:37 +0100 | |
| commit | 9efcb19038851085f1cc8c8ae489740b8db5e6f9 (patch) | |
| tree | 40c620bb79af3e295ddb544db8bc80a44ffe3399 /dot_config/zsh/dot_zprofile | |
| parent | 382fa580aec083ad6e702a07a9a2180bd08a841e (diff) | |
| download | dotfiles-9efcb19038851085f1cc8c8ae489740b8db5e6f9.tar.gz dotfiles-9efcb19038851085f1cc8c8ae489740b8db5e6f9.tar.bz2 dotfiles-9efcb19038851085f1cc8c8ae489740b8db5e6f9.zip | |
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
Diffstat (limited to 'dot_config/zsh/dot_zprofile')
| -rw-r--r-- | dot_config/zsh/dot_zprofile | 6 |
1 files changed, 5 insertions, 1 deletions
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 ──────────────────────────────────────────────────── |
