From 069916d6791b0e5ed1302f3cf94197d983e39fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Dudr?= Date: Thu, 2 Feb 2023 13:05:58 +0100 Subject: [PATCH] zsh: tweak completion and style --- dot_config/zsh/include/options.zsh | 4 ++++ dot_config/zsh/init.zsh | 7 +++++++ dot_config/zsh/theme/gruvbox.ini | 13 +++++++------ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/dot_config/zsh/include/options.zsh b/dot_config/zsh/include/options.zsh index f40c907..0fdb548 100644 --- a/dot_config/zsh/include/options.zsh +++ b/dot_config/zsh/include/options.zsh @@ -2,6 +2,10 @@ zstyle ':zim' disable-version-check yes # set paths zstyle ':zim:completion' dumpfile ${cachedir}/compdump zstyle ':completion::complete:*' cache-path ${cachedir}/compcache + +# ignore parameters private to various plugins (especially POWERLEVEL clutters the completion to unbearable level) +zstyle ':completion:*:*:-parameter-:*:*' ignored-patterns '_*|POWERLEVEL*|P9K*|FAST*|GITSTATUS*' + HISTFILE=${datadir}/history ZSHZ_DATA=${datadir}/z diff --git a/dot_config/zsh/init.zsh b/dot_config/zsh/init.zsh index 567811c..0bd7ad3 100644 --- a/dot_config/zsh/init.zsh +++ b/dot_config/zsh/init.zsh @@ -29,4 +29,11 @@ fi source ${ZIM_HOME}/init.zsh +if [[ $confdir/theme/gruvbox.ini -nt $(fast-theme -w && pwd )/current_theme.zsh ]] +then + echo "Refreshing theme" + fast-theme $confdir/theme/gruvbox.ini +fi +unset _fast_theme + unset cachedir datadir confdir diff --git a/dot_config/zsh/theme/gruvbox.ini b/dot_config/zsh/theme/gruvbox.ini index bad00e2..7c5feb3 100644 --- a/dot_config/zsh/theme/gruvbox.ini +++ b/dot_config/zsh/theme/gruvbox.ini @@ -1,19 +1,20 @@ [base] default = none -unknown-token = #cc241d,bold,undercurl +unknown-token = #cc241d,bold commandseparator = none redirection = none here-string-tri = #8ec07c -here-string-text = bg:#fabd2f -here-string-var = #cc241d,bg:#fabd2f +here-string-text = #1d2021,bg:#b57614 +here-string-var = #cc241d,bg:#b57614 exec-descriptor = #fb4934,bold comment = 8 correct-subtle = #83a598 incorrect-subtle = #fb4934 subtle-separator = #83a598 subtle-bg = bg:#504945 -; secondary = -; recursive-base = +secondary = +recursive-base = + [command-point] reserved-word = #b16286 @@ -32,7 +33,7 @@ double-paren = #b16286 [paths] path = none -pathseparator = +pathseparator = path-to-dir = #b8bb26 globbing = #689d6a globbing-ext = #689d6a,bold