commit ca117ed8b1d07337a22676644e1418175a560006
parent d7430022ca1bdfb2913a24563f51d0bc08bf3eb1
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date: Tue, 9 Jun 2026 11:09:25 +0200
Move vivid to custom zim module
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/zsh/.zimrc b/zsh/.zimrc
@@ -46,3 +46,4 @@ zmodule-custom mise --if-command "mise" --comp "mise completion zsh" --eval "mis
zmodule-custom zoxide --if-command "zoxide" --eval "zoxide init zsh"
zmodule-custom starship --if-command "starship" --eval "starship init zsh"
zmodule-custom atuin --if-command "atuin" --eval "atuin init zsh"
+zmodule-custom vivid --if-command "vivid" --eval 'echo export LS_COLORS=\"$(vivid generate ${VIVID_THEME})\"'
diff --git a/zsh/.zshenv b/zsh/.zshenv
@@ -5,7 +5,7 @@ if [[ $SWAY_ENV != 1 ]]; then
fi
export MISE_Found="$(which mise &>/dev/null; echo $?)"
-tools=( 'vivid' 'nvim' )
+tools=( 'nvim' )
declare -A tool_paths
for tool in "${tools[@]}"; do
@@ -17,8 +17,8 @@ for tool in "${tools[@]}"; do
done
[ -n "${tool_paths[nvim]}" ] && export EDITOR="${tool_paths[nvim]}" && export SUDO_EDITOR="$EDITOR"
-[ -n "${tool_paths[vivid]}" ] && export LS_COLORS="$(${tool_paths[vivid]} generate rose-pine-moon)"
+export VIVID_THEME=rose-pine-moon
export PERL5LIB="$HOME/.usr/local/lib/perl5/"
[ -f "$XDG_RUNTIME_DIR/arista-ssh/agent.sock" ] && export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/arista-ssh/agent.sock"
export ZSH_EXEC=1