diff options
Diffstat (limited to 'dot_config/zsh')
| -rw-r--r-- | dot_config/zsh/dot_zprofile | 6 | ||||
| -rw-r--r-- | dot_config/zsh/dot_zshrc | 1 |
2 files changed, 6 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 ──────────────────────────────────────────────────── diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index dd5a82d..7bb6010 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -64,6 +64,7 @@ _comp_options+=(globdots) # include hidden files in completion # Without this, some terminals send wrong sequences for special keys. if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then autoload -Uz add-zle-hook-widget + # shellcheck disable=all # zsh brace-group-as-function-body isn't bash syntax function zle_application_mode_start { echoti smkx } function zle_application_mode_stop { echoti rmkx } add-zle-hook-widget -Uz zle-line-init zle_application_mode_start |
