Vincent LauriatVincent LauriatVincent Lauriat 11 · homebrewconfig
GitHub

11homebrewconfig

Rust · TUI + CLI · for HomebrewRust · TUI + CLI · pour HomebrewRust · TUI + CLI · 為 Homebrew 打造

Configure Homebrew without editing your shell profile.Configurez Homebrew sans éditer votre profil shell.設定 Homebrew,不必動手編輯你的 shell 設定檔。

Browse, filter and toggle every HOMEBREW_* environment variable from a fast terminal UI — then write a clean, idempotent block to your profile. Re-running never duplicates a thing.Parcourez, filtrez et activez chaque variable d'environnement HOMEBREW_* depuis une interface terminal rapide — puis écrivez un bloc propre et idempotent dans votre profil. Le relancer ne duplique jamais rien.在快速的終端機介面中瀏覽、篩選並切換每一個 HOMEBREW_* 環境變數——再把一個乾淨、冪等的區塊寫入你的設定檔。重複執行也絕不會產生重複內容。

InstallInstallation安裝
brew install vincentlauriat/tap/homebrewconfig — or cargo install homebrewconfigbrew install vincentlauriat/tap/homebrewconfig — ou cargo install homebrewconfigbrew install vincentlauriat/tap/homebrewconfig——或 cargo install homebrewconfig
RequiresConfiguration系統需求
Rust 1.70+ · macOS & LinuxRust 1.70+ · macOS et LinuxRust 1.70+ · macOS 與 Linux
ShellsShellsShell
zsh / bash / fish
LicenceLicence授權
Free & open-source (MIT)Gratuit et open source (MIT)免費開源(MIT)

Every Homebrew knob, in one placeTous les réglages de Homebrew, au même endroitHomebrew 的每個開關,集中在一處

22 settings across Privacy, Updates, Display, Directories, Tools, Security and Network — discoverable, documented and safe to change.22 réglages répartis entre Confidentialité, Mises à jour, Affichage, Répertoires, Outils, Sécurité et Réseau — faciles à trouver, documentés et sans risque à modifier.22 項設定,涵蓋隱私、更新、顯示、目錄、工具、安全與網路——容易找到、附有說明,且可安心修改。

  • All in one viewTout en une vue一個畫面看全部

    Browse and edit every Homebrew environment variable, each with its default value shown.Parcourez et modifiez chaque variable d'environnement Homebrew, chacune avec sa valeur par défaut affichée.瀏覽並編輯每一個 Homebrew 環境變數,每項都會顯示其預設值。

  • Instant filterFiltre instantané即時篩選

    Press / to match by name, variable, category or description as you type.Appuyez sur / pour filtrer par nom, variable, catégorie ou description au fil de la frappe.按下 /,邊打字邊依名稱、變數、類別或說明比對。

  • Idempotent writesÉcritures idempotentes冪等寫入

    Writes a clean BEGIN/END block to your profile — re-running never duplicates exports.Écrit un bloc BEGIN/END propre dans votre profil — le relancer ne duplique jamais les exports.在你的設定檔中寫入一個乾淨的 BEGIN/END 區塊——重複執行絕不會產生重複的 export。

  • Shell auto-detectionDétection automatique du shell自動偵測 shell

    Finds the right profile for zsh, bash or fish, preferring the file that already holds your block.Trouve le bon profil pour zsh, bash ou fish, en privilégiant le fichier qui contient déjà votre bloc.為 zsh、bash 或 fish 找出正確的設定檔,並優先選用已經含有你區塊的那個檔案。

  • Scriptable CLICLI scriptable可腳本化的 CLI

    --set, --apply, --dry-run, --list and --json run with no TUI at all.--set, --apply, --dry-run, --list et --json fonctionnent sans aucune TUI.--set、--apply、--dry-run、--list 與 --json 完全不需要 TUI 即可執行。

  • Shareable presetsPréréglages partageables可分享的預設組

    Export your config to a TOML preset and re-apply it on another machine, forward-compatible by design.Exportez votre configuration dans un préréglage TOML et réappliquez-la sur une autre machine, compatible avec les versions futures par conception.把你的設定匯出成 TOML 預設組,再套用到另一台機器;設計上即向前相容。

  • ThemesThèmes主題

    Cycle colour themes with t — brew, midnight, forest, rose, mono — remembered across runs.Faites défiler les thèmes de couleur avec t — brew, midnight, forest, rose, mono — mémorisés d'une exécution à l'autre.按 t 輪換配色主題——brew、midnight、forest、rose、mono——每次執行都會記住。

  • Safe by defaultSûr par défaut預設安全

    Backs up the previous profile to .bak and previews the exact block before writing.Sauvegarde le profil précédent en .bak et affiche un aperçu du bloc exact avant d'écrire.寫入前會把原本的設定檔備份為 .bak,並預覽將寫入的確切區塊。

  • Man page & completionsPage man et complétionsMan 手冊與自動補全

    Ships a man page plus bash, zsh and fish completions.Livré avec une page man et des complétions bash, zsh et fish.隨附 man 手冊,以及 bash、zsh 與 fish 的自動補全。

One block. Nothing else touched.Un seul bloc. Rien d'autre n'est touché.只有一個區塊,其他一概不動。

Press a and homebrewconfig writes a single marked block to your shell profile. Run it again and only that block changes — the rest of your file is left exactly as it was. Delete the block to remove every managed setting at once.Appuyez sur a et homebrewconfig écrit un unique bloc balisé dans votre profil shell. Relancez-le et seul ce bloc change — le reste de votre fichier reste exactement tel quel. Supprimez le bloc pour retirer d'un coup tous les réglages gérés.按下 a,homebrewconfig 就會在你的 shell 設定檔中寫入一個有標記的區塊。再執行一次,只有那個區塊會改變——檔案的其餘部分完全保持原樣。刪除這個區塊,即可一次移除所有受管理的設定。

# homebrewconfig BEGIN
# Generated by homebrewconfig — do not edit manually

# Privacy
export HOMEBREW_NO_ANALYTICS=1

# Updates
export HOMEBREW_CLEANUP_MAX_AGE_DAYS=30
# homebrewconfig END

Install in one lineInstallation en une ligne一行指令完成安裝

Needs Rust 1.70+ and a 256-color terminal. Works on macOS and Linux.Nécessite Rust 1.70+ et un terminal 256 couleurs. Fonctionne sur macOS et Linux.需要 Rust 1.70+ 與支援 256 色的終端機。可在 macOS 與 Linux 上執行。

  1. Install. brew install vincentlauriat/tap/homebrewconfig — or cargo install homebrewconfig.Installer. brew install vincentlauriat/tap/homebrewconfig — ou cargo install homebrewconfig.安裝。brew install vincentlauriat/tap/homebrewconfig——或 cargo install homebrewconfig。

  2. Run. Launch homebrewconfig; it auto-detects your shell profile.Lancer. Lancez homebrewconfig ; il détecte automatiquement votre profil shell.執行。啟動 homebrewconfig;它會自動偵測你的 shell 設定檔。

  3. Apply. Toggle with Space, then press a — review the preview and confirm.Appliquer. Basculez avec Espace, puis appuyez sur a — vérifiez l'aperçu et confirmez.套用。用 Space 切換,然後按 a——檢查預覽並確認。

Tidy up your Homebrew setupFaites le ménage dans votre configuration Homebrew整理好你的 Homebrew 設定

Free, open-source, scriptable. macOS & Linux, any of zsh / bash / fish.Gratuit, open source, scriptable. macOS et Linux, avec zsh, bash ou fish.免費、開源、可腳本化。支援 macOS 與 Linux,zsh/bash/fish 皆可。