From cee180aefb687a83a9be053f07e73c9fbbd07b00 Mon Sep 17 00:00:00 2001 From: Chen Asraf Date: Sun, 5 Apr 2026 10:25:35 +0300 Subject: [PATCH] refactor: add+use $CFG env --- .local/share/zsh/plugins/local/common/android.zsh | 2 +- .../share/zsh/plugins/local/common/markdown-preview.zsh | 2 +- .local/share/zsh/plugins/local/common/nextcloud.zsh | 2 +- exports.zsh | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.local/share/zsh/plugins/local/common/android.zsh b/.local/share/zsh/plugins/local/common/android.zsh index cbf73098..12ecae95 100755 --- a/.local/share/zsh/plugins/local/common/android.zsh +++ b/.local/share/zsh/plugins/local/common/android.zsh @@ -1,6 +1,6 @@ #!/usr/bin/env zsh -alias adev="wand --wand-file \$HOME/.config/wand/android.yml" +alias adev="wand --wand-file \$CFG/wand/android.yml" alias build-apk="adev build" alias adb-pair-device="adev pair" diff --git a/.local/share/zsh/plugins/local/common/markdown-preview.zsh b/.local/share/zsh/plugins/local/common/markdown-preview.zsh index 1dead1fb..4d0a68d1 100755 --- a/.local/share/zsh/plugins/local/common/markdown-preview.zsh +++ b/.local/share/zsh/plugins/local/common/markdown-preview.zsh @@ -1,4 +1,4 @@ #!/usr/bin/env zsh -alias mdp="wand --wand-file \$HOME/.config/wand/mdp.yml" +alias mdp="wand --wand-file \$CFG/wand/mdp.yml" alias md2html="mdp html" diff --git a/.local/share/zsh/plugins/local/common/nextcloud.zsh b/.local/share/zsh/plugins/local/common/nextcloud.zsh index 79b5e464..fda98986 100755 --- a/.local/share/zsh/plugins/local/common/nextcloud.zsh +++ b/.local/share/zsh/plugins/local/common/nextcloud.zsh @@ -1,6 +1,6 @@ #!/usr/bin/env zsh -alias nxc="wand --wand-file \$HOME/.config/wand/nextcloud.yml" +alias nxc="wand --wand-file \$CFG/wand/nextcloud.yml" # dev alias nc-dev-use="nxc use" diff --git a/exports.zsh b/exports.zsh index fbdd4d58..3fb4f20b 100755 --- a/exports.zsh +++ b/exports.zsh @@ -15,8 +15,8 @@ export PLUGINS_DIR="$HOME/.local/share/zsh/plugins" export TMUX_PLUGINS_DIR="$HOME/.tmux/plugins" # Lazygit -if [[ -d "$HOME/.config/lazygit" ]]; then - export LAZYGIT_HOME="$HOME/.config/lazygit" +if [[ -d "$CFG/lazygit" ]]; then + export LAZYGIT_HOME="$CFG/lazygit" elif [[ -d "$HOME/Library/ApplicationSupport/lazygit" ]]; then export LAZYGIT_HOME="$HOME/Library/ApplicationSupport/lazygit" fi @@ -54,7 +54,7 @@ if [[ -d "/opt/homebrew" ]]; then fi # yamllint -export YAMLLINT_CONFIG_FILE="$HOME/.config/.yamllint.yml" +export YAMLLINT_CONFIG_FILE="$CFG/.yamllint.yml" # Atuin export PATH="$HOME/.atuin/bin:$PATH" @@ -131,7 +131,7 @@ fi # Yarn # if [[ -f $(which yarn) ]]; then # export PATH="$HOME/.yarn/bin:$PATH" -# export PATH="$HOME/.config/yarn/global/node_modules/.bin:$PATH" +# export PATH="$CFG/yarn/global/node_modules/.bin:$PATH" # fi # Ruby