Правка замечаний shellcheck

This commit is contained in:
2022-12-18 18:58:00 +03:00
parent a8f767c95d
commit e09e731101
14 changed files with 78 additions and 32 deletions

View File

@@ -1,7 +1,10 @@
# shellcheck shell=bash
# vim: ft=sh
# Speed up autocomplete, force prefix mapping
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path $ZSH_CACHE_DIR
zstyle ':completion:*' cache-path "$ZSH_CACHE_DIR"
zstyle ':completion:*:processes' command 'ps -ax'
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32'
@@ -33,10 +36,10 @@ zinit wait'!0' lucid light-mode depth'1' for \
atload"!_zsh_autosuggest_start" \
zsh-users/zsh-autosuggestions
if [ -n ${ZSH_MC_SUBSHELL+set} ] && [ -n ${SSH_CONNECTION+set} ]; then
if [[ -n ${ZSH_MC_SUBSHELL+set} ]] && [[ -n ${SSH_CONNECTION+set} ]]; then
zinit load zsh-users/zsh-history-substring-search
else
zstyle ":history-search-multi-word" page-size "$(($LINES/2))"
zstyle ":history-search-multi-word" page-size "$((LINES/2))"
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
zinit wait'!0' lucid light-mode depth'1' for \
zdharma-continuum/history-search-multi-word \