Extract FZF config into configs/shared/fzf.zsh and load p10k last#15
Extract FZF config into configs/shared/fzf.zsh and load p10k last#15
Conversation
…g splitting Co-authored-by: ChangeHow <23733347+ChangeHow@users.noreply.github.com>
|
@copilot p10k(theme) would be the last process of all the tasks. |
Co-authored-by: ChangeHow <23733347+ChangeHow@users.noreply.github.com>
Done in 2f0362a. Moved |
|
/gemini summary |
Summary of ChangesThis pull request refactors the Zsh configuration management by extracting FZF-related environment variables into a dedicated file, Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
|
The
fzf-configappend block extracted FZF env vars fromtools.zshby splitting on a comment string (# Tool initialization), silently breaking if that comment ever changed. Additionally, the Powerlevel10k theme was being loaded in the suitup stage instead of as the final step.Changes
configs/shared/fzf.zsh— new standalone file holding onlyFZF_DEFAULT_COMMAND,FZF_CTRL_T_COMMAND, andFZF_CTRL_T_OPTSconfigs/shared/tools.zsh— FZF vars removed; replaced with an inline conditional source offzf.zsh(avoidssource_if_existsdependency):src/append.js—fzf-configblock readsfzf.zshdirectly viareadFileSyncinstead of parsingtools.zshsrc/steps/zsh-config.js—fzf.zshadded tosharedFilesso it's copied to~/.config/zsh/shared/during setupconfigs/zinit-plugins— removedzinit light romkatv/powerlevel10kso p10k is no longer loaded in the suitup stage (step 7)configs/shared/prompt.zsh— now loads the p10k theme as the very last step (prompt stage, step 9), guarded with(( ${+functions[zinit]} ))so it is a no-op for OMZ setups where p10k is handled by OMZ itselfappend.test.jsassertfzf.zshexists standalone, contains only FZF vars (no cache helpers), and that the appended block is idempotent;configs.test.jsupdated to assert p10k is inprompt.zsh(notzinit-plugins) andsetup.test.jsassertsprompt.zshis sourced afterzinit-pluginsin the template loading order✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.