Skip to content

Introduce new way to settings application

Compare
Choose a tag to compare
@kamontat kamontat released this 16 Apr 15:08
· 171 commits to master since this release

Problem

After introduce a lot of features, we find the problem with too many settings variable create on main .zshrc files. So we start migrate settings to bash array format like below

export MYZS_LOADING_SETTINGS=(
  # enabled or disabled zplug modules and plugins
  # for custom plugins look to `Zsh dependencies plugins` section
  "$" enabled myzs/zplug

  # List of enabled log level, this is case insensitive
  # "error" "warn" "info" "debug"
  "$" array logger/level "error"

  # checking copy data. if it path go to that path automatically
  "$" enabled automatic/open-path

  # add trigger event to cd command to check .myzs-setup file
  "$" disabled setup-file/automatic
)

This a allow us to scale even more and support setting on plugins / modules level.