refactor: add+use $CFG env

This commit is contained in:
2026-04-05 10:25:35 +03:00
parent ce0df371b6
commit cee180aefb
4 changed files with 7 additions and 7 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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