From 7e085b7009adaf3906485c0a313c57bef281a90b Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Thu, 30 Jul 2026 16:52:58 -0300 Subject: [PATCH 01/15] Refresh dotfiles to match current machine state Fixes several bugs that would break a fresh install (invalid goreleaser tap formula, renamed cask tokens, p10k sourced but never installed via brew, stale mas entry), syncs tracked files with what's actually live (.zshrc/.zprofile drift, dock tilesize, dock app list), fills in real Brewfile gaps found via brew leaves/cask diffs and Spotlight usage data, and replaces asdf/hey/httpie with mise/oha/xh. Also documents the two-repo (dotfiles + dotfiles-confidential) install flow and adds a sync-from-home.sh helper to pull local dotfile edits back into the repo. See plans/dotfiles-refresh-plan.md for the full rationale. --- Brewfile | 66 +- README.md | 26 +- home/.gitconfig-confidential | 0 home/.p10k.zsh | 1588 ---------------------------------- home/.zprofile | 1 + home/.zshrc | 14 +- install-cursor-plugins.sh | 6 + install-vscode-plugins.sh | 45 - osx-user-defaults.sh | 2 +- setup-dock.py | 24 +- setup.sh | 14 +- sync-from-home.sh | 16 + 12 files changed, 126 insertions(+), 1676 deletions(-) delete mode 100644 home/.gitconfig-confidential delete mode 100644 home/.p10k.zsh create mode 100755 install-cursor-plugins.sh delete mode 100755 install-vscode-plugins.sh create mode 100755 sync-from-home.sh diff --git a/Brewfile b/Brewfile index be35db3..989c969 100644 --- a/Brewfile +++ b/Brewfile @@ -7,9 +7,7 @@ tap "homebrew/core" tap "homebrew/services" tap "aws/tap" tap "golangci/tap" -tap "goreleaser/tap" tap "iann0036/iamlive" -# tap "romkatv/powerlevel10k" tap "warrensbox/tap" brew "ansible" @@ -21,17 +19,19 @@ brew "consul" brew "coreutils" brew "dasel" brew "dfu-util" +brew "dive" brew "docker-compose" +brew "docker-credential-helper" brew "dos2unix" brew "fd" brew "gettext" +brew "gh" brew "git" brew "golangci-lint" brew "grpcurl" brew "helm" -brew "hey" -brew "httpie" brew "hugo" +brew "jfrog-cli" brew "jq" brew "just" brew "k3d" @@ -42,10 +42,19 @@ brew "kubectx" brew "mas" brew "md5sha1sum" brew "mercurial" +brew "mise" +brew "mole" +brew "ngrok" +brew "oha" +brew "pandoc" brew "platformio" +brew "protobuf" brew "shellcheck" +brew "stripe-cli" +brew "svu" brew "tree" brew "wget" +brew "xh" brew "yamllint" brew "yq" brew "zoxide" @@ -53,52 +62,53 @@ brew "zsh-autosuggestions" brew "zsh-completions" brew "zsh-syntax-highlighting" -brew "goreleaser/tap/goreleaser" -# brew "romkatv/powerlevel10k/powerlevel10k" - -brew "asdf" brew "go" +brew "go@1.21" +brew "gradle@7" +brew "node@22" brew "openjdk" +brew "openjdk@11" +brew "openjdk@21" brew "pyenv" brew "pyenv-virtualenv" -brew "rustup-init" +brew "rustup" brew "zig" +brew "zulu@8" cask "balenaetcher" cask "logitech-camera-settings" -cask "logi-options-plus" +cask "logi-options+" -cask "istat-menus" -cask "shiftit" +cask "istat-menus@6" cask "spotify" cask "the-unarchiver" # cask "arduino-ide" cask "easyeda" -cask "autodesk-fusion360" +cask "autodesk-fusion" cask "prusaslicer" cask "openscad" +cask "freecad" cask "diffmerge" # cask "docker" cask "rancher" +cask "goreleaser" cask "visual-studio-code" +cask "cursor" cask "iterm2" cask "warp" -cask "rapidapi" cask "sourcetree" -cask "vmware-fusion" cask "discord" -cask "keybase" cask "slack" cask "brave-browser" -cask "firefox-developer-edition" -cask "google-chrome-canary" -cask "opera-developer" +cask "firefox@developer-edition" +cask "google-chrome@dev" +cask "opera@developer" cask "tor-browser" cask "raspberry-pi-imager" @@ -107,14 +117,22 @@ cask "rectangle" cask "zoom" cask "grammarly" -mas "Grammarly for Safari", id: 1462114288 +cask "claude" +cask "ledger-wallet" +cask "microsoft-outlook" +cask "microsoft-word" +cask "microsoft-auto-update" vscode "aaron-bond.better-comments" vscode "adamhartford.vscode-base64" +vscode "anthropic.claude-code" vscode "DavidAnson.vscode-markdownlint" vscode "dbaeumer.vscode-eslint" +vscode "docker.docker" vscode "donjayamanne.githistory" +vscode "drblury.protobuf-vsc" vscode "eamodio.gitlens" +vscode "esbenp.prettier-vscode" vscode "github.vscode-github-actions" vscode "golang.go" vscode "hashicorp.hcl" @@ -122,11 +140,14 @@ vscode "hashicorp.terraform" vscode "mcu-debug.debug-tracker-vscode" vscode "mcu-debug.memory-view" vscode "mikestead.dotenv" +vscode "ms-azuretools.vscode-containers" vscode "ms-azuretools.vscode-docker" vscode "ms-kubernetes-tools.vscode-kubernetes-tools" +vscode "ms-python.debugpy" vscode "ms-python.isort" vscode "ms-python.python" vscode "ms-python.vscode-pylance" +vscode "ms-python.vscode-python-envs" vscode "ms-toolsai.jupyter" vscode "ms-toolsai.jupyter-keymap" vscode "ms-toolsai.jupyter-renderers" @@ -145,6 +166,7 @@ vscode "ms-vscode.cpptools-themes" vscode "ms-vscode.makefile-tools" vscode "ms-vscode.remote-explorer" vscode "ms-vscode.remote-server" +vscode "oracle.oracle-java" vscode "platformio.platformio-ide" vscode "redhat.java" vscode "redhat.vscode-commons" @@ -154,8 +176,7 @@ vscode "streetsidesoftware.code-spell-checker" vscode "tamasfe.even-better-toml" vscode "twxs.cmake" vscode "usernamehw.errorlens" -vscode "VisualStudioExptTeam.intellicode-api-usage-examples" -vscode "VisualStudioExptTeam.vscodeintellicode" +vscode "vscjava.vscode-gradle" vscode "vscjava.vscode-java-debug" vscode "vscjava.vscode-java-dependency" vscode "vscjava.vscode-java-pack" @@ -165,4 +186,3 @@ vscode "vscode-icons-team.vscode-icons" vscode "waderyan.gitblame" vscode "wholroyd.jinja" vscode "ziglang.vscode-zig" -vscode "zxh404.vscode-proto3" diff --git a/README.md b/README.md index 3d0524b..df3d136 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ This include the following step. * install xcode-cli * install homebrew * install all applications from homebrew - * install VS Code plugins + * install VS Code / Cursor extensions * install external softwares * run set OsX system defaults * run set user defaults @@ -15,7 +15,10 @@ This include the following step. ## Installation -Download +This is a two-repo setup. This repo covers everything public (Homebrew packages, shell config, macOS defaults, Dock). A second, private repo — `dotfiles-confidential` — covers 1Password, SSH, and work-specific tools, and needs to be run separately. + +### 1. This repo + ```bash mkdir dotfiles cd dotfiles @@ -25,3 +28,22 @@ sh setup.sh cd .. rm -rf dotfiles ``` + +A couple of things `brew bundle` can't do for you, run once after `setup.sh` finishes: +- `rustup default stable` — finishes the Rust toolchain setup. +- `mise install` — installs the pinned runtime versions (e.g. Terraform) that `mise` manages. + +### 2. dotfiles-confidential + +```bash +git clone git@github.com:ffrizzo/dotfiles-confidential.git +cd dotfiles-confidential +chmod +x *.sh +sh setup.sh +cd .. +rm -rf dotfiles-confidential +``` + +### Keeping tracked dotfiles in sync + +`setup.sh` copies `./home/` into `~/` (not symlinked), so local edits to files like `.zshrc` don't automatically flow back into the repo. Run `sh sync-from-home.sh` before committing to pull your current `~/.zshrc`, `~/.zprofile`, etc. back into `./home/`. diff --git a/home/.gitconfig-confidential b/home/.gitconfig-confidential deleted file mode 100644 index e69de29..0000000 diff --git a/home/.p10k.zsh b/home/.p10k.zsh deleted file mode 100644 index 3abc363..0000000 --- a/home/.p10k.zsh +++ /dev/null @@ -1,1588 +0,0 @@ -# Generated by Powerlevel10k configuration wizard on 2020-04-20 at 16:33 -03. -# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 20557. -# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode, -# 24h time, angled separators, sharp heads, flat tails, 2 lines, disconnected, -# left frame, light-ornaments, sparse, many icons, fluent, instant_prompt=off. -# Type `p10k configure` to generate another config. -# -# Config for Powerlevel10k with powerline prompt style with colorful background. -# Type `p10k configure` to generate your own config based on it. -# -# Tip: Looking for a nice color? Here's a one-liner to print colormap. -# -# for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done - -# Temporarily change options. -'builtin' 'local' '-a' 'p10k_config_opts' -[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases') -[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob') -[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand') -'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand' - -() { - emulate -L zsh -o extended_glob - - # Unset all configuration options. This allows you to apply configuration changes without - # restarting zsh. Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`. - unset -m 'POWERLEVEL9K_*' - - # Zsh >= 5.1 is required. - autoload -Uz is-at-least && is-at-least 5.1 || return - - # The list of segments shown on the left. Fill it with the most important segments. - typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( - # =========================[ Line #1 ]========================= - os_icon # os identifier - dir # current directory - vcs # git status - # =========================[ Line #2 ]========================= - newline # \n - # prompt_char # prompt symbol - ) - - # The list of segments shown on the right. Fill it with less important segments. - # Right prompt on the last prompt line (where you are typing your commands) gets - # automatically hidden when the input line reaches it. Right prompt above the - # last prompt line gets hidden if it would overlap with left prompt. - typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( - # =========================[ Line #1 ]========================= - status # exit code of the last command - command_execution_time # duration of the last command - background_jobs # presence of background jobs - direnv # direnv status (https://direnv.net/) - asdf # asdf version manager (https://github.com/asdf-vm/asdf) - virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html) - anaconda # conda environment (https://conda.io/) - # pyenv # python environment (https://github.com/pyenv/pyenv) - goenv # go environment (https://github.com/syndbg/goenv) - nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv) - # nvm # node.js version from nvm (https://github.com/nvm-sh/nvm) - nodeenv # node.js environment (https://github.com/ekalinin/nodeenv) - node_version # node.js version - go_version # go version (https://golang.org) - rust_version # rustc version (https://www.rust-lang.org) - # dotnet_version # .NET version (https://dotnet.microsoft.com) - # php_version # php version (https://www.php.net/) - # laravel_version # laravel php framework version (https://laravel.com/) - java_version # java version (https://www.java.com/) - # package # name@version from package.json (https://docs.npmjs.com/files/package.json) - rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv) - rvm # ruby version from rvm (https://rvm.io) - fvm # flutter version management (https://github.com/leoafarias/fvm) - luaenv # lua version from luaenv (https://github.com/cehoffman/luaenv) - jenv # java version from jenv (https://github.com/jenv/jenv) - plenv # perl version from plenv (https://github.com/tokuhirom/plenv) - phpenv # php version from phpenv (https://github.com/phpenv/phpenv) - haskell_stack # haskell version from stack (https://haskellstack.org/) - kubecontext # current kubernetes context (https://kubernetes.io/) - terraform # terraform workspace (https://www.terraform.io) - aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) - aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) - azure # azure account name (https://docs.microsoft.com/en-us/cli/azure) - gcloud # google cloud cli account and project (https://cloud.google.com/) - google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production) - context # user@hostname - nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) - ranger # ranger shell (https://github.com/ranger/ranger) - nnn # nnn shell (https://github.com/jarun/nnn) - vim_shell # vim shell indicator (:sh) - midnight_commander # midnight commander shell (https://midnight-commander.org/) - nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) - vi_mode # vi mode (you don't need this if you've enabled prompt_char) - # vpn_ip # virtual private network indicator - # load # CPU load - # disk_usage # disk usage - # ram # free RAM - # swap # used swap - todo # todo items (https://github.com/todotxt/todo.txt-cli) - timewarrior # timewarrior tracking status (https://timewarrior.net/) - taskwarrior # taskwarrior task count (https://taskwarrior.org/) - time # current time - # =========================[ Line #2 ]========================= - newline - # ip # ip address and bandwidth usage for a specified network interface - # public_ip # public IP address - # proxy # system-wide http/https/ftp proxy - # battery # internal battery - # wifi # wifi speed - # example # example user-defined segment (see prompt_example function below) - ) - - # Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you. - typeset -g POWERLEVEL9K_MODE=nerdfont-complete - # When set to `moderate`, some icons will have an extra space after them. This is meant to avoid - # icon overlap when using non-monospace fonts. When set to `none`, spaces are not added. - typeset -g POWERLEVEL9K_ICON_PADDING=none - - # When set to true, icons appear before content on both sides of the prompt. When set - # to false, icons go after content. If empty or not set, icons go before content in the left - # prompt and after content in the right prompt. - # - # You can also override it for a specific segment: - # - # POWERLEVEL9K_STATUS_ICON_BEFORE_CONTENT=false - # - # Or for a specific segment in specific state: - # - # POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false - typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT= - - # Add an empty line before each prompt. - typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true - - # Connect left prompt lines with these symbols. You'll probably want to use the same color - # as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below. - typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%242F╭─' - typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%242F├─' - typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%242F╰─' - # Connect right prompt lines with these symbols. - typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX= - typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX= - typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX= - - # Filler between left and right prompt on the first prompt line. You can set it to ' ', '·' or - # '─'. The last two make it easier to see the alignment between left and right prompt and to - # separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false - # for more compact prompt if using using this option. - typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' ' - typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND= - if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then - # The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE - # ornaments defined above. - typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=242 - # Start filler from the edge of the screen if there are no left segments on the first line. - typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}' - # End filler on the edge of the screen if there are no right segments on the first line. - typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}' - fi - - # Separator between same-color segments on the left. - typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='\uE0B1' - # Separator between same-color segments on the right. - typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='\uE0B3' - # Separator between different-color segments on the left. - typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0B0' - # Separator between different-color segments on the right. - typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\uE0B2' - # The right end of left prompt. - typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0' - # The left end of right prompt. - typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B2' - # The left end of left prompt. - typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL='' - # The right end of right prompt. - typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL='' - # Left prompt terminator for lines without any segments. - typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL= - - #################################[ os_icon: os identifier ]################################## - # OS identifier color. - typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=232 - typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=7 - # Custom icon. - # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐' - - ################################[ prompt_char: prompt symbol ]################################ - # Transparent background. - typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND= - # Green prompt symbol if the last command succeeded. - typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76 - # Red prompt symbol if the last command failed. - typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196 - # Default prompt symbol. - typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯' - # Prompt symbol in command vi mode. - typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮' - # Prompt symbol in visual vi mode. - typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='Ⅴ' - # Prompt symbol in overwrite vi mode. - typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶' - typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true - # No line terminator if prompt_char is the last segment. - typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL= - # No line introducer if prompt_char is the first segment. - typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL= - # No surrounding whitespace. - typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_{LEFT,RIGHT}_WHITESPACE= - - ##################################[ dir: current directory ]################################## - # Current directory background color. - # typeset -g POWERLEVEL9K_DIR_BACKGROUND=4 - # Default current directory foreground color. - typeset -g POWERLEVEL9K_DIR_FOREGROUND=254 - # If directory is too long, shorten some of its segments to the shortest possible unique - # prefix. The shortened directory can be tab-completed to the original. - typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique - # Replace removed segment suffixes with this symbol. - typeset -g POWERLEVEL9K_SHORTEN_DELIMITER= - # Color of the shortened directory segments. - typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=250 - # Color of the anchor directory segments. Anchor segments are never shortened. The first - # segment is always an anchor. - typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=255 - # Display anchor directory segments in bold. - typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true - # Don't shorten directories that contain any of these files. They are anchors. - local anchor_files=( - .bzr - .citc - .git - .hg - .node-version - .python-version - .go-version - .ruby-version - .lua-version - .java-version - .perl-version - .php-version - .tool-version - .shorten_folder_marker - .svn - .terraform - CVS - Cargo.toml - composer.json - go.mod - package.json - stack.yaml - ) - typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})" - # If set to true, remove everything before the last (deepest) subdirectory that contains files - # matching $POWERLEVEL9K_SHORTEN_FOLDER_MARKER. For example, when the current directory is - # /foo/bar/git_repo/baz, prompt will display git_repo/baz. This assumes that /foo/bar/git_repo - # contains a marker (.git) and other directories don't. - typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false - # Don't shorten this many last directory segments. They are anchors. - typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 - # Shorten directory if it's longer than this even if there is space for it. The value can - # be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty, - # directory will be shortened only when prompt doesn't fit or when other parameters demand it - # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below). - # If set to `0`, directory will always be shortened to its minimum length. - typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80 - # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this - # many columns for typing commands. - typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40 - # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least - # COLUMNS * POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT * 0.01 columns for typing commands. - typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50 - # If set to true, embed a hyperlink into the directory. Useful for quickly - # opening a directory in the file manager simply by clicking the link. - # Can also be handy when the directory is shortened, as it allows you to see - # the full directory that was used in previous commands. - typeset -g POWERLEVEL9K_DIR_HYPERLINK=false - - # Enable special styling for non-writable directories. - typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=true - # Show this icon when the current directory is not writable. POWERLEVEL9K_DIR_SHOW_WRITABLE - # above must be set to true for this parameter to have effect. - # typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐' - - # Custom prefix. - # typeset -g POWERLEVEL9K_DIR_PREFIX='in ' - - # POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons for different directories. - # It must be an array with 3 * N elements. Each triplet consists of: - # - # 1. A pattern against which the current directory is matched. Matching is done with - # extended_glob option enabled. - # 2. Directory class for the purpose of styling. - # 3. Icon. - # - # Triplets are tried in order. The first triplet whose pattern matches $PWD wins. If there - # are no matches, the directory will have no icon. - # - # Example: - # - # typeset -g POWERLEVEL9K_DIR_CLASSES=( - # '~/work(|/*)' WORK '(╯°□°)╯︵ ┻━┻' - # '~(|/*)' HOME '⌂' - # '*' DEFAULT '') - # - # With these settings, the current directory in the prompt may look like this: - # - # (╯°□°)╯︵ ┻━┻ ~/work/projects/important/urgent - # - # Or like this: - # - # ⌂ ~/best/powerlevel10k - # - # You can also set different colors for directories of different classes. Remember to override - # FOREGROUND, SHORTENED_FOREGROUND and ANCHOR_FOREGROUND for every directory class that you wish - # to have its own color. - # - # typeset -g POWERLEVEL9K_DIR_WORK_BACKGROUND=4 - # typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=254 - # typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=250 - # typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=255 - # - # typeset -g POWERLEVEL9K_DIR_CLASSES=() - - #####################################[ vcs: git status ]###################################### - # Version control system colors. - # typeset -g POWERLEVEL9K_VCS_CLEAN_BACKGROUND=2 - # typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=3 - # typeset -g POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=2 - # typeset -g POWERLEVEL9K_VCS_CONFLICTED_BACKGROUND=3 - # typeset -g POWERLEVEL9K_VCS_LOADING_BACKGROUND=8 - - # Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon. - typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 ' - - # Untracked files icon. It's really a question mark, your font isn't broken. - # Change the value of this parameter to show a different icon. - typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?' - - # Formatter for Git status. - # - # Example output: master ⇣42⇡42 *42 merge ~42 +42 !42 ?42. - # - # You can edit the function to customize how Git status looks. - # - # VCS_STATUS_* parameters are set by gitstatus plugin. See reference: - # https://github.com/romkatv/gitstatus/blob/master/gitstatus.plugin.zsh. - function my_git_formatter() { - emulate -L zsh - - if [[ -n $P9K_CONTENT ]]; then - # If P9K_CONTENT is not empty, use it. It's either "loading" or from vcs_info (not from - # gitstatus plugin). VCS_STATUS_* parameters are not available in this case. - typeset -g my_git_format=$P9K_CONTENT - return - fi - - # Styling for different parts of Git status. - local meta='%7F' # white foreground - local clean='%0F' # black foreground - local modified='%0F' # black foreground - local untracked='%0F' # black foreground - local conflicted='%1F' # red foreground - - local res - local where # branch or tag - if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then - res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}" - where=${(V)VCS_STATUS_LOCAL_BRANCH} - elif [[ -n $VCS_STATUS_TAG ]]; then - res+="${meta}#" - where=${(V)VCS_STATUS_TAG} - fi - - # If local branch name or tag is at most 32 characters long, show it in full. - # Otherwise show the first 12 … the last 12. - # Tip: To always show local branch name in full without truncation, delete the next line. - (( $#where > 32 )) && where[13,-13]="…" - res+="${clean}${where//\%/%%}" # escape % - - # Display the current Git commit if there is no branch or tag. - # Tip: To always display the current Git commit, remove `[[ -z $where ]] &&` from the next line. - [[ -z $where ]] && res+="${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}" - - # Show tracking branch name if it differs from local branch. - if [[ -n ${VCS_STATUS_REMOTE_BRANCH:#$VCS_STATUS_LOCAL_BRANCH} ]]; then - res+="${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\%/%%}" # escape % - fi - - # ⇣42 if behind the remote. - (( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}" - # ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42. - (( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" " - (( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}" - # ⇠42 if behind the push remote. - (( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}" - (( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" " - # ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42. - (( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}⇢${VCS_STATUS_PUSH_COMMITS_AHEAD}" - # *42 if have stashes. - (( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}" - # 'merge' if the repo is in an unusual state. - [[ -n $VCS_STATUS_ACTION ]] && res+=" ${conflicted}${VCS_STATUS_ACTION}" - # ~42 if have merge conflicts. - (( VCS_STATUS_NUM_CONFLICTED )) && res+=" ${conflicted}~${VCS_STATUS_NUM_CONFLICTED}" - # +42 if have staged changes. - (( VCS_STATUS_NUM_STAGED )) && res+=" ${modified}+${VCS_STATUS_NUM_STAGED}" - # !42 if have unstaged changes. - (( VCS_STATUS_NUM_UNSTAGED )) && res+=" ${modified}!${VCS_STATUS_NUM_UNSTAGED}" - # ?42 if have untracked files. It's really a question mark, your font isn't broken. - # See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon. - # Remove the next line if you don't want to see untracked files at all. - (( VCS_STATUS_NUM_UNTRACKED )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}" - # "─" if the number of unstaged files is unknown. This can happen due to - # POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower - # than the number of files in the Git index, or due to bash.showDirtyState being set to false - # in the repository config. The number of staged and untracked files may also be unknown - # in this case. - (( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}─" - - typeset -g my_git_format=$res - } - functions -M my_git_formatter 2>/dev/null - - # Don't count the number of unstaged, untracked and conflicted files in Git repositories with - # more than this many files in the index. Negative value means infinity. - # - # If you are working in Git repositories with tens of millions of files and seeing performance - # sagging, try setting POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY to a number lower than the output - # of `git ls-files | wc -l`. Alternatively, add `bash.showDirtyState = false` to the repository's - # config: `git config bash.showDirtyState false`. - typeset -g POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1 - - # Don't show Git status in prompt for repositories whose workdir matches this pattern. - # For example, if set to '~', the Git repository at $HOME/.git will be ignored. - # Multiple patterns can be combined with '|': '~|~/some/dir'. - typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~' - - # Disable the default Git status formatting. - typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true - # Install our own Git status formatter. - typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter()))+${my_git_format}}' - # Enable counters for staged, unstaged, etc. - typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED,CONFLICTED,COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=-1 - - # Custom icon. - # typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_EXPANSION='⭐' - # Custom prefix. - typeset -g POWERLEVEL9K_VCS_PREFIX='on ' - - # Show status of repositories of these types. You can add svn and/or hg if you are - # using them. If you do, your prompt may become slow even when your current directory - # isn't in an svn or hg reposotiry. - typeset -g POWERLEVEL9K_VCS_BACKENDS=(git) - - ##########################[ status: exit code of the last command ]########################### - # Enable OK_PIPE, ERROR_PIPE and ERROR_SIGNAL status states to allow us to enable, disable and - # style them independently from the regular OK and ERROR state. - typeset -g POWERLEVEL9K_STATUS_EXTENDED_STATES=true - - # Status on success. No content, just an icon. No need to show it if prompt_char is enabled as - # it will signify success by turning green. - typeset -g POWERLEVEL9K_STATUS_OK=true - typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔' - # typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=2 - # typeset -g POWERLEVEL9K_STATUS_OK_BACKGROUND=0 - - # Status when some part of a pipe command fails but the overall exit status is zero. It may look - # like this: 1|0. - typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true - typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔' - # typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2 - # typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=0 - - # Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as - # it will signify error by turning red. - typeset -g POWERLEVEL9K_STATUS_ERROR=true - typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘' - # typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=3 - # typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1 - - # Status when the last command was terminated by a signal. - typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true - # Use terse signal names: "INT" instead of "SIGINT(2)". - typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false - typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='✘' - # typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=3 - # typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1 - - # Status when some part of a pipe command fails and the overall exit status is also non-zero. - # It may look like this: 1|0. - typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true - typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='✘' - # typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=3 - # typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=1 - - ###################[ command_execution_time: duration of the last command ]################### - # Execution time color. - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0 - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=3 - # Show duration of the last command if takes longer than this many seconds. - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3 - # Show this many fractional digits. Zero means round to seconds. - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0 - # Duration format: 1d 2h 3m 4s. - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s' - # Custom icon. - # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐' - # Custom prefix. - typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='took ' - - #######################[ background_jobs: presence of background jobs ]####################### - # Background jobs color. - # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6 - # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=0 - # Don't show the number of background jobs. - typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false - # Custom icon. - # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #######################[ direnv: direnv status (https://direnv.net/) ]######################## - # Direnv color. - # typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=3 - # typeset -g POWERLEVEL9K_DIRENV_BACKGROUND=0 - # Custom icon. - # typeset -g POWERLEVEL9K_DIRENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###############[ asdf: asdf version manager (https://github.com/asdf-vm/asdf) ]############### - # Default asdf color. Only used to display tools for which there is no color override (see below). - typeset -g POWERLEVEL9K_ASDF_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_BACKGROUND=7 - - # There are four parameters that can be used to hide asdf tools. Each parameter describes - # conditions under which a tool gets hidden. Parameters can hide tools but not unhide them. If at - # least one parameter decides to hide a tool, that tool gets hidden. If no parameter decides to - # hide a tool, it gets shown. - # - # Special note on the difference between POWERLEVEL9K_ASDF_SOURCES and - # POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW. Consider the effect of the following commands: - # - # asdf local python 3.8.1 - # asdf global python 3.8.1 - # - # After running both commands the current python version is 3.8.1 and its source is "local" as - # it takes precedence over "global". If POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW is set to false, - # it'll hide python version in this case because 3.8.1 is the same as the global version. - # POWERLEVEL9K_ASDF_SOURCES will hide python version only if the value of this parameter doesn't - # contain "local". - - # Hide tool versions that don't come from one of these sources. - # - # Available sources: - # - # - shell `asdf current` says "set by ASDF_${TOOL}_VERSION environment variable" - # - local `asdf current` says "set by /some/not/home/directory/file" - # - global `asdf current` says "set by /home/username/file" - # - # Note: If this parameter is set to (shell local global), it won't hide tools. - # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SOURCES. - typeset -g POWERLEVEL9K_ASDF_SOURCES=(shell local global) - - # If set to false, hide tool versions that are the same as global. - # - # Note: The name of this parameter doesn't reflect its meaning at all. - # Note: If this parameter is set to true, it won't hide tools. - # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_PROMPT_ALWAYS_SHOW. - typeset -g POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW=false - - # If set to false, hide tool versions that are equal to "system". - # - # Note: If this parameter is set to true, it won't hide tools. - # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_SYSTEM. - typeset -g POWERLEVEL9K_ASDF_SHOW_SYSTEM=true - - # If set to non-empty value, hide tools unless there is a file matching the specified file pattern - # in the current directory, or its parent diretory, or its grandparent directory, and so on. - # - # Note: If this parameter is set to empty value, it won't hide tools. - # Note: SHOW_ON_UPGLOB isn't specific to asdf. It works with all prompt segments. - # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_ON_UPGLOB. - # - # Example: Hide nodejs version when there is no package.json and no *.js files in the current - # directory, in `..`, in `../..` and so on. - # - # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.js|package.json' - typeset -g POWERLEVEL9K_ASDF_SHOW_ON_UPGLOB= - - # Ruby version from asdf. - typeset -g POWERLEVEL9K_ASDF_RUBY_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_RUBY_BACKGROUND=1 - # typeset -g POWERLEVEL9K_ASDF_RUBY_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_RUBY_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Python version from asdf. - typeset -g POWERLEVEL9K_ASDF_PYTHON_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_PYTHON_BACKGROUND=4 - # typeset -g POWERLEVEL9K_ASDF_PYTHON_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_PYTHON_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Go version from asdf. - typeset -g POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_GOLANG_BACKGROUND=4 - # typeset -g POWERLEVEL9K_ASDF_GOLANG_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_GOLANG_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Node.js version from asdf. - typeset -g POWERLEVEL9K_ASDF_NODEJS_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_NODEJS_BACKGROUND=2 - # typeset -g POWERLEVEL9K_ASDF_NODEJS_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Rust version from asdf. - typeset -g POWERLEVEL9K_ASDF_RUST_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_RUST_BACKGROUND=208 - # typeset -g POWERLEVEL9K_ASDF_RUST_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_RUST_SHOW_ON_UPGLOB='*.foo|*.bar' - - # .NET Core version from asdf. - typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_BACKGROUND=5 - # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Flutter version from asdf. - typeset -g POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_FLUTTER_BACKGROUND=4 - # typeset -g POWERLEVEL9K_ASDF_FLUTTER_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_FLUTTER_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Lua version from asdf. - typeset -g POWERLEVEL9K_ASDF_LUA_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_LUA_BACKGROUND=4 - # typeset -g POWERLEVEL9K_ASDF_LUA_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_LUA_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Java version from asdf. - typeset -g POWERLEVEL9K_ASDF_JAVA_FOREGROUND=1 - typeset -g POWERLEVEL9K_ASDF_JAVA_BACKGROUND=7 - # typeset -g POWERLEVEL9K_ASDF_JAVA_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_JAVA_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Perl version from asdf. - typeset -g POWERLEVEL9K_ASDF_PERL_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_PERL_BACKGROUND=4 - # typeset -g POWERLEVEL9K_ASDF_PERL_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_PERL_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Erlang version from asdf. - typeset -g POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_ERLANG_BACKGROUND=1 - # typeset -g POWERLEVEL9K_ASDF_ERLANG_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_ERLANG_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Elixir version from asdf. - typeset -g POWERLEVEL9K_ASDF_ELIXIR_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_ELIXIR_BACKGROUND=5 - # typeset -g POWERLEVEL9K_ASDF_ELIXIR_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_ELIXIR_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Postgres version from asdf. - typeset -g POWERLEVEL9K_ASDF_POSTGRES_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_POSTGRES_BACKGROUND=6 - # typeset -g POWERLEVEL9K_ASDF_POSTGRES_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_POSTGRES_SHOW_ON_UPGLOB='*.foo|*.bar' - - # PHP version from asdf. - typeset -g POWERLEVEL9K_ASDF_PHP_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_PHP_BACKGROUND=5 - # typeset -g POWERLEVEL9K_ASDF_PHP_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_PHP_SHOW_ON_UPGLOB='*.foo|*.bar' - - # Haskell version from asdf. - typeset -g POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=0 - typeset -g POWERLEVEL9K_ASDF_HASKELL_BACKGROUND=3 - # typeset -g POWERLEVEL9K_ASDF_HASKELL_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_ASDF_HASKELL_SHOW_ON_UPGLOB='*.foo|*.bar' - - ##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]########### - # NordVPN connection indicator color. - # typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=7 - # typeset -g POWERLEVEL9K_NORDVPN_BACKGROUND=4 - # Hide NordVPN connection indicator when not connected. - typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION= - typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION= - # Custom icon. - # typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #################[ ranger: ranger shell (https://github.com/ranger/ranger) ]################## - # Ranger shell color. - # typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3 - # typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0 - # Custom icon. - # typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]####################### - # Nnn shell color. - # typeset -g POWERLEVEL9K_NNN_FOREGROUND=0 - # typeset -g POWERLEVEL9K_NNN_BACKGROUND=6 - # Custom icon. - # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###########################[ vim_shell: vim shell indicator (:sh) ]########################### - # Vim shell indicator color. - # typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=0 - # typeset -g POWERLEVEL9K_VIM_SHELL_BACKGROUND=2 - # Custom icon. - # typeset -g POWERLEVEL9K_VIM_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ######[ midnight_commander: midnight commander shell (https://midnight-commander.org/) ]###### - # Midnight Commander shell color. - # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=3 - # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_BACKGROUND=0 - # Custom icon. - # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #[ nix_shell: nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) ]## - # Nix shell color. - # typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=0 - # typeset -g POWERLEVEL9K_NIX_SHELL_BACKGROUND=4 - - # Tip: If you want to see just the icon without "pure" and "impure", uncomment the next line. - # typeset -g POWERLEVEL9K_NIX_SHELL_CONTENT_EXPANSION= - - # Custom icon. - # typeset -g POWERLEVEL9K_NIX_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##################################[ disk_usage: disk usage ]################################## - # Colors for different levels of disk usage. - # typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_FOREGROUND=3 - # typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_BACKGROUND=0 - # typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_FOREGROUND=0 - # typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_BACKGROUND=3 - # typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_FOREGROUND=7 - # typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_BACKGROUND=1 - # Thresholds for different levels of disk usage (percentage points). - typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90 - typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95 - # If set to true, hide disk usage when below $POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL percent. - typeset -g POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false - # Custom icon. - # typeset -g POWERLEVEL9K_DISK_USAGE_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###########[ vi_mode: vi mode (you don't need this if you've enabled prompt_char) ]########### - # Foreground color. - typeset -g POWERLEVEL9K_VI_MODE_FOREGROUND=0 - # Text and color for normal (a.k.a. command) vi mode. - typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL - typeset -g POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND=2 - # Text and color for visual vi mode. - typeset -g POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL - typeset -g POWERLEVEL9K_VI_MODE_VISUAL_BACKGROUND=4 - # Text and color for overtype (a.k.a. overwrite and replace) vi mode. - typeset -g POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE - typeset -g POWERLEVEL9K_VI_MODE_OVERWRITE_BACKGROUND=3 - # Text and color for insert vi mode. - typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING= - typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=8 - - ######################################[ ram: free RAM ]####################################### - # RAM color. - # typeset -g POWERLEVEL9K_RAM_FOREGROUND=0 - # typeset -g POWERLEVEL9K_RAM_BACKGROUND=3 - # Custom icon. - # typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #####################################[ swap: used swap ]###################################### - # Swap color. - # typeset -g POWERLEVEL9K_SWAP_FOREGROUND=0 - # typeset -g POWERLEVEL9K_SWAP_BACKGROUND=3 - # Custom icon. - # typeset -g POWERLEVEL9K_SWAP_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ######################################[ load: CPU load ]###################################### - # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15. - typeset -g POWERLEVEL9K_LOAD_WHICH=5 - # Load color when load is under 50%. - # typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=0 - # typeset -g POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=2 - # Load color when load is between 50% and 70%. - # typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=0 - # typeset -g POWERLEVEL9K_LOAD_WARNING_BACKGROUND=3 - # Load color when load is over 70%. - # typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=0 - # typeset -g POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND=1 - # Custom icon. - # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ################[ todo: todo items (https://github.com/todotxt/todo.txt-cli) ]################ - # Todo color. - # typeset -g POWERLEVEL9K_TODO_FOREGROUND=0 - # typeset -g POWERLEVEL9K_TODO_BACKGROUND=8 - # Hide todo when the total number of tasks is zero. - typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true - # Hide todo when the number of tasks after filtering is zero. - typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_FILTERED=false - - # Todo format. The following parameters are available within the expansion. - # - # - P9K_TODO_TOTAL_TASK_COUNT The total number of tasks. - # - P9K_TODO_FILTERED_TASK_COUNT The number of tasks after filtering. - # - # These variables correspond to the last line of the output of `todo.sh -p ls`: - # - # TODO: 24 of 42 tasks shown - # - # Here 24 is P9K_TODO_FILTERED_TASK_COUNT and 42 is P9K_TODO_TOTAL_TASK_COUNT. - # - # typeset -g POWERLEVEL9K_TODO_CONTENT_EXPANSION='$P9K_TODO_FILTERED_TASK_COUNT' - - # Custom icon. - # typeset -g POWERLEVEL9K_TODO_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###########[ timewarrior: timewarrior tracking status (https://timewarrior.net/) ]############ - # Timewarrior color. - # typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255 - # typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8 - - # If the tracked task is longer than 24 characters, truncate and append "…". - # Tip: To always display tasks without truncation, delete the following parameter. - # Tip: To hide task names and display just the icon when time tracking is enabled, set the - # value of the following parameter to "". - typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}' - - # Custom icon. - # typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##############[ taskwarrior: taskwarrior task count (https://taskwarrior.org/) ]############## - # Taskwarrior color. - # typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=0 - # typeset -g POWERLEVEL9K_TASKWARRIOR_BACKGROUND=6 - - # Taskwarrior segment format. The following parameters are available within the expansion. - # - # - P9K_TASKWARRIOR_PENDING_COUNT The number of pending tasks: `task +PENDING count`. - # - P9K_TASKWARRIOR_OVERDUE_COUNT The number of overdue tasks: `task +OVERDUE count`. - # - # Zero values are represented as empty parameters. - # - # The default format: - # - # '${P9K_TASKWARRIOR_OVERDUE_COUNT:+"!$P9K_TASKWARRIOR_OVERDUE_COUNT/"}$P9K_TASKWARRIOR_PENDING_COUNT' - # - # typeset -g POWERLEVEL9K_TASKWARRIOR_CONTENT_EXPANSION='$P9K_TASKWARRIOR_PENDING_COUNT' - - # Custom icon. - # typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##################################[ context: user@hostname ]################################## - # Context color when running with privileges. - typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=1 - typeset -g POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND=0 - # Context color in SSH without privileges. - typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=3 - typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_BACKGROUND=0 - # Default context color (no privileges, no SSH). - typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=3 - typeset -g POWERLEVEL9K_CONTEXT_BACKGROUND=0 - - # Context format when running with privileges: user@hostname. - typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m' - # Context format when in SSH without privileges: user@hostname. - typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_TEMPLATE='%n@%m' - # Default context format (no privileges, no SSH): user@hostname. - typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m' - - # Don't show context unless running with privileges or in SSH. - # Tip: Remove the next line to always show context. - typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION= - - # Custom icon. - # typeset -g POWERLEVEL9K_CONTEXT_VISUAL_IDENTIFIER_EXPANSION='⭐' - # Custom prefix. - typeset -g POWERLEVEL9K_CONTEXT_PREFIX='with ' - - ###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]### - # Python virtual environment color. - # typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=0 - # typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=4 - # Don't show Python version next to the virtual environment name. - typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false - # Separate environment name from Python version only with a space. - typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER= - # Custom icon. - # typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #####################[ anaconda: conda environment (https://conda.io/) ]###################### - # Anaconda environment color. - # typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=0 - # typeset -g POWERLEVEL9K_ANACONDA_BACKGROUND=4 - # Don't show Python version next to the anaconda environment name. - typeset -g POWERLEVEL9K_ANACONDA_SHOW_PYTHON_VERSION=false - # Separate environment name from Python version only with a space. - typeset -g POWERLEVEL9K_ANACONDA_{LEFT,RIGHT}_DELIMITER= - # Custom icon. - # typeset -g POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################ - # Pyenv color. - # typeset -g POWERLEVEL9K_PYENV_FOREGROUND=0 - # typeset -g POWERLEVEL9K_PYENV_BACKGROUND=4 - # Hide python version if it doesn't come from one of these sources. - typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global) - # If set to false, hide python version if it's the same as global: - # $(pyenv version-name) == $(pyenv global). - typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false - # If set to false, hide python version if it's equal to "system". - typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true - # Custom icon. - # typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ################[ goenv: go environment (https://github.com/syndbg/goenv) ]################ - # Goenv color. - # typeset -g POWERLEVEL9K_GOENV_FOREGROUND=0 - # typeset -g POWERLEVEL9K_GOENV_BACKGROUND=4 - # Hide go version if it doesn't come from one of these sources. - typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global) - # If set to false, hide go version if it's the same as global: - # $(goenv version-name) == $(goenv global). - typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false - # If set to false, hide go version if it's equal to "system". - typeset -g POWERLEVEL9K_GOENV_SHOW_SYSTEM=true - # Custom icon. - # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]########## - # Nodenv color. - # typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2 - # typeset -g POWERLEVEL9K_NODENV_BACKGROUND=0 - # Hide node version if it doesn't come from one of these sources. - typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global) - # If set to false, hide node version if it's the same as global: - # $(nodenv version-name) == $(nodenv global). - typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false - # If set to false, hide node version if it's equal to "system". - typeset -g POWERLEVEL9K_NODENV_SHOW_SYSTEM=true - # Custom icon. - # typeset -g POWERLEVEL9K_NODENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]############### - # Nvm color. - # typeset -g POWERLEVEL9K_NVM_FOREGROUND=0 - # typeset -g POWERLEVEL9K_NVM_BACKGROUND=5 - # Custom icon. - # typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############ - # Nodeenv color. - # typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2 - # typeset -g POWERLEVEL9K_NODEENV_BACKGROUND=0 - # Don't show Node version next to the environment name. - typeset -g POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false - # Separate environment name from Node version only with a space. - typeset -g POWERLEVEL9K_NODEENV_{LEFT,RIGHT}_DELIMITER= - # Custom icon. - # typeset -g POWERLEVEL9K_NODEENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##############################[ node_version: node.js version ]############################### - # Node version color. - # typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=7 - # typeset -g POWERLEVEL9K_NODE_VERSION_BACKGROUND=2 - # Show node version only when in a directory tree containing package.json. - typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true - # Custom icon. - # typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #######################[ go_version: go version (https://golang.org) ]######################## - # Go version color. - # typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=255 - # typeset -g POWERLEVEL9K_GO_VERSION_BACKGROUND=2 - # Show go version only when in a go project subdirectory. - typeset -g POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true - # Custom icon. - # typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #################[ rust_version: rustc version (https://www.rust-lang.org) ]################## - # Rust version color. - # typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=0 - # typeset -g POWERLEVEL9K_RUST_VERSION_BACKGROUND=208 - # Show rust version only when in a rust project subdirectory. - typeset -g POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true - # Custom icon. - # typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###############[ dotnet_version: .NET version (https://dotnet.microsoft.com) ]################ - # .NET version color. - # typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=7 - # typeset -g POWERLEVEL9K_DOTNET_VERSION_BACKGROUND=5 - # Show .NET version only when in a .NET project subdirectory. - typeset -g POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true - # Custom icon. - # typeset -g POWERLEVEL9K_DOTNET_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #####################[ php_version: php version (https://www.php.net/) ]###################### - # PHP version color. - typeset -g POWERLEVEL9K_PHP_VERSION_FOREGROUND=0 - typeset -g POWERLEVEL9K_PHP_VERSION_BACKGROUND=5 - # Show PHP version only when in a PHP project subdirectory. - typeset -g POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY=true - # Custom icon. - # typeset -g POWERLEVEL9K_PHP_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##########[ laravel_version: laravel php framework version (https://laravel.com/) ]########### - # Laravel version color. - typeset -g POWERLEVEL9K_LARAVEL_VERSION_FOREGROUND=1 - typeset -g POWERLEVEL9K_LARAVEL_VERSION_BACKGROUND=7 - # Custom icon. - # typeset -g POWERLEVEL9K_LARAVEL_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]############## - # Rbenv color. - # typeset -g POWERLEVEL9K_RBENV_FOREGROUND=0 - # typeset -g POWERLEVEL9K_RBENV_BACKGROUND=1 - # Hide ruby version if it doesn't come from one of these sources. - typeset -g POWERLEVEL9K_RBENV_SOURCES=(shell local global) - # If set to false, hide ruby version if it's the same as global: - # $(rbenv version-name) == $(rbenv global). - typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false - # If set to false, hide ruby version if it's equal to "system". - typeset -g POWERLEVEL9K_RBENV_SHOW_SYSTEM=true - # Custom icon. - # typeset -g POWERLEVEL9K_RBENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ####################[ java_version: java version (https://www.java.com/) ]#################### - # Java version color. - typeset -g POWERLEVEL9K_JAVA_VERSION_FOREGROUND=1 - typeset -g POWERLEVEL9K_JAVA_VERSION_BACKGROUND=7 - # Show java version only when in a java project subdirectory. - typeset -g POWERLEVEL9K_JAVA_VERSION_PROJECT_ONLY=true - # Show brief version. - typeset -g POWERLEVEL9K_JAVA_VERSION_FULL=false - # Custom icon. - # typeset -g POWERLEVEL9K_JAVA_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###[ package: name@version from package.json (https://docs.npmjs.com/files/package.json) ]#### - # Package color. - # typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=0 - # typeset -g POWERLEVEL9K_PACKAGE_BACKGROUND=6 - - # Package format. The following parameters are available within the expansion. - # - # - P9K_PACKAGE_NAME The value of `name` field in package.json. - # - P9K_PACKAGE_VERSION The value of `version` field in package.json. - # - # typeset -g POWERLEVEL9K_PACKAGE_CONTENT_EXPANSION='${P9K_PACKAGE_NAME//\%/%%}@${P9K_PACKAGE_VERSION//\%/%%}' - - # Custom icon. - # typeset -g POWERLEVEL9K_PACKAGE_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #######################[ rvm: ruby version from rvm (https://rvm.io) ]######################## - # Rvm color. - # typeset -g POWERLEVEL9K_RVM_FOREGROUND=0 - # typeset -g POWERLEVEL9K_RVM_BACKGROUND=240 - # Don't show @gemset at the end. - typeset -g POWERLEVEL9K_RVM_SHOW_GEMSET=false - # Don't show ruby- at the front. - typeset -g POWERLEVEL9K_RVM_SHOW_PREFIX=false - # Custom icon. - # typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############ - # Fvm color. - # typeset -g POWERLEVEL9K_FVM_FOREGROUND=0 - # typeset -g POWERLEVEL9K_FVM_BACKGROUND=4 - # Custom icon. - # typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##########[ luaenv: lua version from luaenv (https://github.com/cehoffman/luaenv) ]########### - # Lua color. - # typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=0 - # typeset -g POWERLEVEL9K_LUAENV_BACKGROUND=4 - # Hide lua version if it doesn't come from one of these sources. - typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global) - # If set to false, hide lua version if it's the same as global: - # $(luaenv version-name) == $(luaenv global). - typeset -g POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false - # If set to false, hide lua version if it's equal to "system". - typeset -g POWERLEVEL9K_LUAENV_SHOW_SYSTEM=true - # Custom icon. - # typeset -g POWERLEVEL9K_LUAENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################ - # Java color. - # typeset -g POWERLEVEL9K_JENV_FOREGROUND=1 - # typeset -g POWERLEVEL9K_JENV_BACKGROUND=7 - # Hide java version if it doesn't come from one of these sources. - typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global) - # If set to false, hide java version if it's the same as global: - # $(jenv version-name) == $(jenv global). - typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false - # If set to false, hide java version if it's equal to "system". - typeset -g POWERLEVEL9K_JENV_SHOW_SYSTEM=true - # Custom icon. - # typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###########[ plenv: perl version from plenv (https://github.com/tokuhirom/plenv) ]############ - # Perl color. - # typeset -g POWERLEVEL9K_PLENV_FOREGROUND=0 - # typeset -g POWERLEVEL9K_PLENV_BACKGROUND=4 - # Hide perl version if it doesn't come from one of these sources. - typeset -g POWERLEVEL9K_PLENV_SOURCES=(shell local global) - # If set to false, hide perl version if it's the same as global: - # $(plenv version-name) == $(plenv global). - typeset -g POWERLEVEL9K_PLENV_PROMPT_ALWAYS_SHOW=false - # If set to false, hide perl version if it's equal to "system". - typeset -g POWERLEVEL9K_PLENV_SHOW_SYSTEM=true - # Custom icon. - # typeset -g POWERLEVEL9K_PLENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ############[ phpenv: php version from phpenv (https://github.com/phpenv/phpenv) ]############ - # PHP color. - # typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=0 - # typeset -g POWERLEVEL9K_PHPENV_BACKGROUND=5 - # Hide php version if it doesn't come from one of these sources. - typeset -g POWERLEVEL9K_PHPENV_SOURCES=(shell local global) - # If set to false, hide php version if it's the same as global: - # $(phpenv version-name) == $(phpenv global). - typeset -g POWERLEVEL9K_PHPENV_PROMPT_ALWAYS_SHOW=false - # If set to false, hide PHP version if it's equal to "system". - typeset -g POWERLEVEL9K_PHPENV_SHOW_SYSTEM=true - # Custom icon. - # typeset -g POWERLEVEL9K_PHPENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##########[ haskell_stack: haskell version from stack (https://haskellstack.org/) ]########### - # Haskell color. - # typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=0 - # typeset -g POWERLEVEL9K_HASKELL_STACK_BACKGROUND=3 - - # Hide haskell version if it doesn't come from one of these sources. - # - # shell: version is set by STACK_YAML - # local: version is set by stack.yaml up the directory tree - # global: version is set by the implicit global project (~/.stack/global-project/stack.yaml) - typeset -g POWERLEVEL9K_HASKELL_STACK_SOURCES=(shell local) - # If set to false, hide haskell version if it's the same as in the implicit global project. - typeset -g POWERLEVEL9K_HASKELL_STACK_ALWAYS_SHOW=true - # Custom icon. - # typeset -g POWERLEVEL9K_HASKELL_STACK_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ################[ terraform: terraform workspace (https://www.terraform.io) ]################# - # POWERLEVEL9K_TERRAFORM_CLASSES is an array with even number of elements. The first element - # in each pair defines a pattern against which the current terraform workspace gets matched. - # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below) - # that gets matched. If you unset all POWERLEVEL9K_TERRAFORM_*CONTENT_EXPANSION parameters, - # you'll see this value in your prompt. The second element of each pair in - # POWERLEVEL9K_TERRAFORM_CLASSES defines the workspace class. Patterns are tried in order. The - # first match wins. - # - # For example, given these settings: - # - # typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=( - # '*prod*' PROD - # '*test*' TEST - # '*' DEFAULT) - # - # If your current terraform workspace is "project_test", its class is TEST because "project_test" - # doesn't match the pattern '*prod*' but does match '*test*'. - # - # You can define different colors, icons and content expansions for different classes: - # - # typeset -g POWERLEVEL9K_TERRAFORM_TEST_FOREGROUND=2 - # typeset -g POWERLEVEL9K_TERRAFORM_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_TERRAFORM_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <' - typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=( - # '*prod*' PROD # These values are examples that are unlikely - # '*test*' TEST # to match your needs. Customize them as needed. - '*' DEFAULT) - typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_FOREGROUND=4 - typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_BACKGROUND=0 - # typeset -g POWERLEVEL9K_TERRAFORM_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]############# - # Show kubecontext only when the the command you are typing invokes one of these tools. - # Tip: Remove the next line to always show kubecontext. - typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito' - - # Kubernetes context classes for the purpose of using different colors, icons and expansions with - # different contexts. - # - # POWERLEVEL9K_KUBECONTEXT_CLASSES is an array with even number of elements. The first element - # in each pair defines a pattern against which the current kubernetes context gets matched. - # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below) - # that gets matched. If you unset all POWERLEVEL9K_KUBECONTEXT_*CONTENT_EXPANSION parameters, - # you'll see this value in your prompt. The second element of each pair in - # POWERLEVEL9K_KUBECONTEXT_CLASSES defines the context class. Patterns are tried in order. The - # first match wins. - # - # For example, given these settings: - # - # typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=( - # '*prod*' PROD - # '*test*' TEST - # '*' DEFAULT) - # - # If your current kubernetes context is "deathray-testing/default", its class is TEST - # because "deathray-testing/default" doesn't match the pattern '*prod*' but does match '*test*'. - # - # You can define different colors, icons and content expansions for different classes: - # - # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_FOREGROUND=0 - # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_BACKGROUND=2 - # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <' - typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=( - # '*prod*' PROD # These values are examples that are unlikely - # '*test*' TEST # to match your needs. Customize them as needed. - '*' DEFAULT) - typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=7 - typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_BACKGROUND=5 - # typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' - - # Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext - # segment. Parameter expansions are very flexible and fast, too. See reference: - # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion. - # - # Within the expansion the following parameters are always available: - # - # - P9K_CONTENT The content that would've been displayed if there was no content - # expansion defined. - # - P9K_KUBECONTEXT_NAME The current context's name. Corresponds to column NAME in the - # output of `kubectl config get-contexts`. - # - P9K_KUBECONTEXT_CLUSTER The current context's cluster. Corresponds to column CLUSTER in the - # output of `kubectl config get-contexts`. - # - P9K_KUBECONTEXT_NAMESPACE The current context's namespace. Corresponds to column NAMESPACE - # in the output of `kubectl config get-contexts`. If there is no - # namespace, the parameter is set to "default". - # - P9K_KUBECONTEXT_USER The current context's user. Corresponds to column AUTHINFO in the - # output of `kubectl config get-contexts`. - # - # If the context points to Google Kubernetes Engine (GKE) or Elastic Kubernetes Service (EKS), - # the following extra parameters are available: - # - # - P9K_KUBECONTEXT_CLOUD_NAME Either "gke" or "eks". - # - P9K_KUBECONTEXT_CLOUD_ACCOUNT Account/project ID. - # - P9K_KUBECONTEXT_CLOUD_ZONE Availability zone. - # - P9K_KUBECONTEXT_CLOUD_CLUSTER Cluster. - # - # P9K_KUBECONTEXT_CLOUD_* parameters are derived from P9K_KUBECONTEXT_CLUSTER. For example, - # if P9K_KUBECONTEXT_CLUSTER is "gke_my-account_us-east1-a_my-cluster-01": - # - # - P9K_KUBECONTEXT_CLOUD_NAME=gke - # - P9K_KUBECONTEXT_CLOUD_ACCOUNT=my-account - # - P9K_KUBECONTEXT_CLOUD_ZONE=us-east1-a - # - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01 - # - # If P9K_KUBECONTEXT_CLUSTER is "arn:aws:eks:us-east-1:123456789012:cluster/my-cluster-01": - # - # - P9K_KUBECONTEXT_CLOUD_NAME=eks - # - P9K_KUBECONTEXT_CLOUD_ACCOUNT=123456789012 - # - P9K_KUBECONTEXT_CLOUD_ZONE=us-east-1 - # - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01 - typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION= - # Show P9K_KUBECONTEXT_CLOUD_CLUSTER if it's not empty and fall back to P9K_KUBECONTEXT_NAME. - POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}' - # Append the current context's namespace if it's not "default". - POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${${:-/$P9K_KUBECONTEXT_NAMESPACE}:#/default}' - - # Custom prefix. - typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='at ' - - #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]# - # Show aws only when the the command you are typing invokes one of these tools. - # Tip: Remove the next line to always show aws. - typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi' - - # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element - # in each pair defines a pattern against which the current AWS profile gets matched. - # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below) - # that gets matched. If you unset all POWERLEVEL9K_AWS_*CONTENT_EXPANSION parameters, - # you'll see this value in your prompt. The second element of each pair in - # POWERLEVEL9K_AWS_CLASSES defines the profile class. Patterns are tried in order. The - # first match wins. - # - # For example, given these settings: - # - # typeset -g POWERLEVEL9K_AWS_CLASSES=( - # '*prod*' PROD - # '*test*' TEST - # '*' DEFAULT) - # - # If your current AWS profile is "company_test", its class is TEST - # because "company_test" doesn't match the pattern '*prod*' but does match '*test*'. - # - # You can define different colors, icons and content expansions for different classes: - # - # typeset -g POWERLEVEL9K_AWS_TEST_FOREGROUND=28 - # typeset -g POWERLEVEL9K_AWS_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_AWS_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <' - typeset -g POWERLEVEL9K_AWS_CLASSES=( - # '*prod*' PROD # These values are examples that are unlikely - # '*test*' TEST # to match your needs. Customize them as needed. - '*' DEFAULT) - # typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=7 - # typeset -g POWERLEVEL9K_AWS_DEFAULT_BACKGROUND=1 - # typeset -g POWERLEVEL9K_AWS_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #[ aws_eb_env: aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) ]# - # AWS Elastic Beanstalk environment color. - # typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2 - # typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0 - # Custom icon. - # typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]########## - # Show azure only when the the command you are typing invokes one of these tools. - # Tip: Remove the next line to always show azure. - typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi' - # Azure account name color. - # typeset -g POWERLEVEL9K_AZURE_FOREGROUND=7 - # typeset -g POWERLEVEL9K_AZURE_BACKGROUND=4 - # Custom icon. - # typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]########### - # Show gcloud only when the the command you are typing invokes one of these tools. - # Tip: Remove the next line to always show gcloud. - typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs' - # Google cloud color. - # typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=7 - # typeset -g POWERLEVEL9K_GCLOUD_BACKGROUND=4 - - # Google cloud format. Change the value of POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION and/or - # POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION if the default is too verbose or not informative - # enough. You can use the following parameters in the expansions. Each of them corresponds to the - # output of `gcloud` tool. - # - # Parameter | Source - # -------------------------|-------------------------------------------------------------------- - # P9K_GCLOUD_CONFIGURATION | gcloud config configurations list --format='value(name)' - # P9K_GCLOUD_ACCOUNT | gcloud config get-value account - # P9K_GCLOUD_PROJECT_ID | gcloud config get-value project - # P9K_GCLOUD_PROJECT_NAME | gcloud projects describe $P9K_GCLOUD_PROJECT_ID --format='value(name)' - # - # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurences of '%' replaced with '%%'. - # - # Obtaining project name requires sending a request to Google servers. This can take a long time - # and even fail. When project name is unknown, P9K_GCLOUD_PROJECT_NAME is not set and gcloud - # prompt segment is in state PARTIAL. When project name gets known, P9K_GCLOUD_PROJECT_NAME gets - # set and gcloud prompt segment transitions to state COMPLETE. - # - # You can customize the format, icon and colors of gcloud segment separately for states PARTIAL - # and COMPLETE. You can also hide gcloud in state PARTIAL by setting - # POWERLEVEL9K_GCLOUD_PARTIAL_VISUAL_IDENTIFIER_EXPANSION and - # POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION to empty. - typeset -g POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_ID//\%/%%}' - typeset -g POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_NAME//\%/%%}' - - # Send a request to Google (by means of `gcloud projects describe ...`) to obtain project name - # this often. Negative value disables periodic polling. In this mode project name is retrieved - # only when the current configuration, account or project id changes. - typeset -g POWERLEVEL9K_GCLOUD_REFRESH_PROJECT_NAME_SECONDS=60 - - # Custom icon. - # typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]# - # Show google_app_cred only when the the command you are typing invokes one of these tools. - # Tip: Remove the next line to always show google_app_cred. - typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi' - - # Google application credentials classes for the purpose of using different colors, icons and - # expansions with different credentials. - # - # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES is an array with even number of elements. The first - # element in each pair defines a pattern against which the current kubernetes context gets - # matched. More specifically, it's P9K_CONTENT prior to the application of context expansion - # (see below) that gets matched. If you unset all POWERLEVEL9K_GOOGLE_APP_CRED_*CONTENT_EXPANSION - # parameters, you'll see this value in your prompt. The second element of each pair in - # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES defines the context class. Patterns are tried in order. - # The first match wins. - # - # For example, given these settings: - # - # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=( - # '*:*prod*:*' PROD - # '*:*test*:*' TEST - # '*' DEFAULT) - # - # If your current Google application credentials is "service_account deathray-testing x@y.com", - # its class is TEST because it doesn't match the pattern '* *prod* *' but does match '* *test* *'. - # - # You can define different colors, icons and content expansions for different classes: - # - # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_FOREGROUND=28 - # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐' - # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_CONTENT_EXPANSION='$P9K_GOOGLE_APP_CRED_PROJECT_ID' - typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=( - # '*:*prod*:*' PROD # These values are examples that are unlikely - # '*:*test*:*' TEST # to match your needs. Customize them as needed. - '*' DEFAULT) - # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_FOREGROUND=7 - # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_BACKGROUND=4 - # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐' - - # Use POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION to specify the content displayed by - # google_app_cred segment. Parameter expansions are very flexible and fast, too. See reference: - # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion. - # - # You can use the following parameters in the expansion. Each of them corresponds to one of the - # fields in the JSON file pointed to by GOOGLE_APPLICATION_CREDENTIALS. - # - # Parameter | JSON key file field - # ---------------------------------+--------------- - # P9K_GOOGLE_APP_CRED_TYPE | type - # P9K_GOOGLE_APP_CRED_PROJECT_ID | project_id - # P9K_GOOGLE_APP_CRED_CLIENT_EMAIL | client_email - # - # Note: ${VARIABLE//\%/%%} expands to ${VARIABLE} with all occurences of '%' replaced by '%%'. - typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\%/%%}' - - ###############################[ public_ip: public IP address ]############################### - # Public IP color. - # typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=7 - # typeset -g POWERLEVEL9K_PUBLIC_IP_BACKGROUND=0 - # Custom icon. - # typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ########################[ vpn_ip: virtual private network indicator ]######################### - # VPN IP color. - # typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=0 - # typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6 - # When on VPN, show just an icon without the IP address. - # Tip: To display the private IP address when on VPN, remove the next line. - typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION= - # Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN - # to see the name of the interface. - typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(wg|(.*tun))[0-9]*' - # If set to true, show one segment per matching network interface. If set to false, show only - # one segment corresponding to the first matching network interface. - # Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION. - typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=false - # Custom icon. - # typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ###########[ ip: ip address and bandwidth usage for a specified network interface ]########### - # IP color. - typeset -g POWERLEVEL9K_IP_BACKGROUND=4 - typeset -g POWERLEVEL9K_IP_FOREGROUND=0 - # The following parameters are accessible within the expansion: - # - # Parameter | Meaning - # ----------------------+--------------- - # P9K_IP_IP | IP address - # P9K_IP_INTERFACE | network interface - # P9K_IP_RX_BYTES | total number of bytes received - # P9K_IP_TX_BYTES | total number of bytes sent - # P9K_IP_RX_RATE | receive rate (since last prompt) - # P9K_IP_TX_RATE | send rate (since last prompt) - typeset -g POWERLEVEL9K_IP_CONTENT_EXPANSION='${P9K_IP_RX_RATE:+⇣$P9K_IP_RX_RATE }${P9K_IP_TX_RATE:+⇡$P9K_IP_TX_RATE }$P9K_IP_IP' - # Show information for the first network interface whose name matches this regular expression. - # Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces. - typeset -g POWERLEVEL9K_IP_INTERFACE='e.*' - # Custom icon. - # typeset -g POWERLEVEL9K_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' - - #########################[ proxy: system-wide http/https/ftp proxy ]########################## - # Proxy color. - # typeset -g POWERLEVEL9K_PROXY_FOREGROUND=4 - # typeset -g POWERLEVEL9K_PROXY_BACKGROUND=0 - # Custom icon. - # typeset -g POWERLEVEL9K_PROXY_VISUAL_IDENTIFIER_EXPANSION='⭐' - - ################################[ battery: internal battery ]################################# - # Show battery in red when it's below this level and not connected to power supply. - typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20 - typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=1 - # Show battery in green when it's charging or fully charged. - typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=2 - # Show battery in yellow when it's discharging. - typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3 - # Battery pictograms going from low to high level of charge. - typeset -g POWERLEVEL9K_BATTERY_STAGES='\uf58d\uf579\uf57a\uf57b\uf57c\uf57d\uf57e\uf57f\uf580\uf581\uf578' - # Don't show the remaining time to charge/discharge. - typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false - # typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0 - - #####################################[ wifi: wifi speed ]##################################### - # WiFi color. - # typeset -g POWERLEVEL9K_WIFI_FOREGROUND=0 - # typeset -g POWERLEVEL9K_WIFI_BACKGROUND=4 - # Custom icon. - # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='⭐' - - # Use different colors and icons depending on signal strength ($P9K_WIFI_BARS). - # - # # Wifi colors and icons for different signal strength levels (low to high). - # typeset -g my_wifi_fg=(0 0 0 0 0) # <-- change these values - # typeset -g my_wifi_icon=('WiFi' 'WiFi' 'WiFi' 'WiFi' 'WiFi') # <-- change these values - # - # typeset -g POWERLEVEL9K_WIFI_CONTENT_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}$P9K_WIFI_LAST_TX_RATE Mbps' - # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}${my_wifi_icon[P9K_WIFI_BARS+1]}' - # - # The following parameters are accessible within the expansions: - # - # Parameter | Meaning - # ----------------------+--------------- - # P9K_WIFI_SSID | service set identifier, a.k.a. network name - # P9K_WIFI_LINK_AUTH | authentication protocol such as "wpa2-psk" or "none" - # P9K_WIFI_LAST_TX_RATE | wireless transmit rate in megabits per second - # P9K_WIFI_RSSI | signal strength in dBm, from -120 to 0 - # P9K_WIFI_NOISE | noise in dBm, from -120 to 0 - # P9K_WIFI_BARS | signal strength in bars, from 0 to 4 (derived from P9K_WIFI_RSSI and P9K_WIFI_NOISE) - # - # All parameters except P9K_WIFI_BARS are extracted from the output of the following command: - # - # /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I - - ####################################[ time: current time ]#################################### - # Current time color. - # typeset -g POWERLEVEL9K_TIME_FOREGROUND=0 - # typeset -g POWERLEVEL9K_TIME_BACKGROUND=7 - # Format for the current time: 09:51:02. See `man 3 strftime`. - typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}' - # If set to true, time will update when you hit enter. This way prompts for the past - # commands will contain the start times of their commands as opposed to the default - # behavior where they contain the end times of their preceding commands. - typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false - # Custom icon. - # typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐' - # Custom prefix. - typeset -g POWERLEVEL9K_TIME_PREFIX='at ' - - # Example of a user-defined prompt segment. Function prompt_example will be called on every - # prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or - # POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and yellow text on red background - # greeting the user. - # - # Type `p10k help segment` for documentation and a more sophisticated example. - function prompt_example() { - p10k segment -b 1 -f 3 -i '⭐' -t 'hello, %n' - } - - # User-defined prompt segments may optionally provide an instant_prompt_* function. Its job - # is to generate the prompt segment for display in instant prompt. See - # https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt. - # - # Powerlevel10k will call instant_prompt_* at the same time as the regular prompt_* function - # and will record all `p10k segment` calls it makes. When displaying instant prompt, Powerlevel10k - # will replay these calls without actually calling instant_prompt_*. It is imperative that - # instant_prompt_* always makes the same `p10k segment` calls regardless of environment. If this - # rule is not observed, the content of instant prompt will be incorrect. - # - # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If - # instant_prompt_* is not defined for a segment, the segment won't be shown in instant prompt. - function instant_prompt_example() { - # Since prompt_example always makes the same `p10k segment` calls, we can call it from - # instant_prompt_example. This will give us the same `example` prompt segment in the instant - # and regular prompts. - prompt_example - } - - # User-defined prompt segments can be customized the same way as built-in segments. - # typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=3 - # typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='⭐' - - # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt - # when accepting a command line. Supported values: - # - # - off: Don't change prompt when accepting a command line. - # - always: Trim down prompt when accepting a command line. - # - same-dir: Trim down prompt when accepting a command line unless this is the first command - # typed after changing current working directory. - typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=same-dir - - # Instant prompt mode. - # - # - off: Disable instant prompt. Choose this if you've tried instant prompt and found - # it incompatible with your zsh configuration files. - # - quiet: Enable instant prompt and don't print warnings when detecting console output - # during zsh initialization. Choose this if you've read and understood - # https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt. - # - verbose: Enable instant prompt and print a warning when detecting console output during - # zsh initialization. Choose this if you've never tried instant prompt, haven't - # seen the warning, or if you are unsure what this all means. - typeset -g POWERLEVEL9K_INSTANT_PROMPT=off - - # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized. - # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload - # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you - # really need it. - typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true - - # If p10k is already loaded, reload configuration. - # This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true. - (( ! $+functions[p10k] )) || p10k reload -} - -# Tell `p10k configure` which file it should overwrite. -typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a} - -(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]} -'builtin' 'unset' 'p10k_config_opts' diff --git a/home/.zprofile b/home/.zprofile index d9c5505..682e9ee 100644 --- a/home/.zprofile +++ b/home/.zprofile @@ -12,6 +12,7 @@ export GO111MODULE=on export GOPATH=$HOME/workspaces/go/ export PATH=$PATH:$GOPATH/bin export PATH="/opt/homebrew/opt/openjdk/bin:$PATH" +export PATH="/opt/homebrew/opt/node@22/bin:$PATH" export TF_PLUGIN_CACHE_DIR="$HOME/.terraform.d/plugin-cache" diff --git a/home/.zshrc b/home/.zshrc index 03cc3bc..b6c7f47 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -9,7 +9,6 @@ export ZSH="$HOME/.oh-my-zsh" # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes # ZSH_THEME="agnoster" -# ZSH_THEME="powerlevel10k/powerlevel10k" ZSH_DOTENV_PROMPT=Always @@ -21,7 +20,6 @@ ZSH_DOTENV_PROMPT=Always plugins=( aliases ansible - asdf aws branch brew @@ -37,7 +35,6 @@ plugins=( golang helm history - httpie iterm2 jira kops @@ -55,7 +52,6 @@ plugins=( rust terraform vagrant - vault virtualenv vscode yarn @@ -66,12 +62,14 @@ plugins=( source $ZSH/oh-my-zsh.sh -# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. -[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh - autoload -U +X bashcompinit && bashcompinit source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme export GPG_TTY=$(tty) + +eval "$(mise activate zsh)" + +### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT) +export PATH="/Users/ffrizzo/.rd/bin:$PATH" +### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT) diff --git a/install-cursor-plugins.sh b/install-cursor-plugins.sh new file mode 100755 index 0000000..d4c1494 --- /dev/null +++ b/install-cursor-plugins.sh @@ -0,0 +1,6 @@ +#!/bin/zsh +echo "\nInstalling Brewfile's vscode extensions into Cursor..." + +grep -oE '^vscode "[^"]+"' Brewfile | sed -E 's/vscode "//;s/"//' | while read -r extension; do + cursor --install-extension "$extension" +done diff --git a/install-vscode-plugins.sh b/install-vscode-plugins.sh deleted file mode 100755 index a38ed49..0000000 --- a/install-vscode-plugins.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/zsh -echo "\nInstalling vscode plugins..." - -code --log error --install-extension aaron-bond.better-comments -code --log error --install-extension adamhartford.vscode-base64 -code --log error --install-extension bungcip.better-toml -code --log error --install-extension DavidAnson.vscode-markdownlint -code --log error --install-extension dbaeumer.vscode-eslint -code --log error --install-extension donjayamanne.githistory -code --log error --install-extension eamodio.gitlens -code --log error --install-extension golang.go -code --log error --install-extension hashicorp.hcl -code --log error --install-extension hashicorp.terraform -code --log error --install-extension mikestead.dotenv -code --log error --install-extension ms-azuretools.vscode-docker -code --log error --install-extension ms-kubernetes-tools.vscode-kubernetes-tools -code --log error --install-extension ms-python.isort -code --log error --install-extension ms-python.python -code --log error --install-extension ms-python.vscode-pylance -code --log error --install-extension ms-toolsai.jupyter -code --log error --install-extension ms-toolsai.jupyter-keymap -code --log error --install-extension ms-toolsai.jupyter-renderers -code --log error --install-extension ms-toolsai.vscode-jupyter-cell-tags -code --log error --install-extension ms-toolsai.vscode-jupyter-slideshow -code --log error --install-extension ms-vscode-remote.remote-containers -code --log error --install-extension ms-vscode-remote.remote-ssh -code --log error --install-extension ms-vscode-remote.remote-ssh-edit -code --log error --install-extension ms-vscode-remote.remote-wsl -code --log error --install-extension ms-vscode-remote.vscode-remote-extensionpack -code --log error --install-extension ms-vscode.atom-keybindings -code --log error --install-extension ms-vscode.cpptools -code --log error --install-extension ms-vscode.makefile-tools -code --log error --install-extension ms-vscode.remote-explorer -code --log error --install-extension ms-vscode.remote-server -code --log error --install-extension platformio.platformio-ide -code --log error --install-extension redhat.vscode-commons -code --log error --install-extension redhat.vscode-yaml -code --log error --install-extension rust-lang.rust-analyzer -code --log error --install-extension streetsidesoftware.code-spell-checker -code --log error --install-extension usernamehw.errorlens -code --log error --install-extension vscode-icons-team.vscode-icons -code --log error --install-extension waderyan.gitblame -code --log error --install-extension wholroyd.jinja -code --log error --install-extension ziglang.vscode-zig -code --log error --install-extension zxh404.vscode-proto3 diff --git a/osx-user-defaults.sh b/osx-user-defaults.sh index a925cdf..6b867de 100755 --- a/osx-user-defaults.sh +++ b/osx-user-defaults.sh @@ -63,7 +63,7 @@ defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true # ============================================== defaults write com.apple.dock showAppExposeGesture -bool true defaults write com.apple.dock magnification -bool true -defaults write com.apple.dock tilesize -int 29 +defaults write com.apple.dock tilesize -int 71 defaults write com.apple.dock minimize-to-application -bool true defaults write com.apple.dock autohide 1 # ============================================== diff --git a/setup-dock.py b/setup-dock.py index 40f562e..866fb43 100644 --- a/setup-dock.py +++ b/setup-dock.py @@ -34,43 +34,53 @@ # Add these if they exist or "forced"==True # ======================================= thirdPartyApps = [ + { + "path": "/Applications/Warp.app", + "args": ["--after", "System Settings"], + "forced": True + }, + { + "path": "/Applications/Cursor.app", + "args": ["--after", "Warp"], + "forced": True + }, { "path": "/Applications/Visual Studio Code.app", "args": ["--after", "System Settings"], "forced": True }, { - "path": "/Applications/Warp.app", + "path": "/Applications/Claude.app", "args": ["--after", "System Settings"], "forced": True }, { - "path": "/Applications/Spotify.app", + "path": "/Applications/Brave Browser.app", "args": ["--after", "Safari"], "forced": True }, { - "path": "/Applications/Slack.app", + "path": "/Applications/Google Chrome Dev.app", "args": ["--after", "Safari"], "forced": True }, { - "path": "/Applications/Discord.app", + "path": "/Applications/Firefox Developer Edition.app", "args": ["--after", "Safari"], "forced": True }, { - "path": "/Applications/Firefox Developer Edition.app", + "path": "/Applications/Slack.app", "args": ["--after", "Safari"], "forced": True }, { - "path": "/Applications/Google Chrome Canary.app", + "path": "/Applications/Spotify.app", "args": ["--after", "Safari"], "forced": True }, { - "path": "/Applications/Brave Browser.app", + "path": "/Applications/Microsoft Outlook.app", "args": ["--after", "Safari"], "forced": True } diff --git a/setup.sh b/setup.sh index d173b0f..a4421ea 100755 --- a/setup.sh +++ b/setup.sh @@ -4,8 +4,6 @@ echo "\nSetup OsX..." sh install-cli-tools.sh sh install-homebrew.sh -sh install-tools.sh -# sh install-vscode-plugins.sh sh install-broswer-extensions.sh sudo sh osx-system-defaults.sh @@ -22,3 +20,15 @@ sh setup-dock.sh sh install-zsh.sh yes | cp -a ./home/ ~/ + +echo "\nInstalling Brewfile's VS Code extensions on Cursor..." +sh install-cursor-plugins.sh + +echo "\n==================================================" +echo "Almost done. A couple of things brew bundle can't do for you:" +echo " - run 'rustup default stable' once to finish the Rust toolchain setup" +echo " - run 'mise install' once to pick up the pinned terraform versions" +echo " - clone and run the dotfiles-confidential repo for 1Password/SSH/work tools:" +echo " git clone git@github.com:ffrizzo/dotfiles-confidential.git" +echo " cd dotfiles-confidential && sh setup.sh" +echo "==================================================" diff --git a/sync-from-home.sh b/sync-from-home.sh new file mode 100755 index 0000000..5c636dc --- /dev/null +++ b/sync-from-home.sh @@ -0,0 +1,16 @@ +#!/bin/zsh +# Mirror of setup.sh's `cp -a ./home/ ~/`, but in reverse: pulls each tracked +# dotfile back from $HOME into ./home/ so local edits can be reviewed and +# committed instead of silently drifting out of sync with the repo. +echo "\nSyncing tracked dotfiles back from ~ into ./home ..." + +find ./home -type f | while read -r file; do + relative_path=${file#./home/} + source="$HOME/$relative_path" + if [ -f "$source" ]; then + cp -a "$source" "$file" + echo "Synced $relative_path" + else + echo "Skipped $relative_path (not found in \$HOME)" + fi +done From a6d6c28ad76c8bb4929d082b3fb92515c4df79f2 Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Thu, 30 Jul 2026 16:52:58 -0300 Subject: [PATCH 02/15] Refresh dotfiles to match current machine state Fixes several bugs that would break a fresh install (invalid goreleaser tap formula, renamed cask tokens, p10k sourced but never installed via brew, stale mas entry), syncs tracked files with what's actually live (.zshrc/.zprofile drift, dock tilesize, dock app list), fills in real Brewfile gaps found via brew leaves/cask diffs and Spotlight usage data, and replaces asdf/hey/httpie with mise/oha/xh. Also documents the two-repo (dotfiles + dotfiles-confidential) install flow and adds a sync-from-home.sh helper to pull local dotfile edits back into the repo. See plans/dotfiles-refresh-plan.md for the full rationale. --- plans/dotfiles-refresh-plan.md | 103 +++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 plans/dotfiles-refresh-plan.md diff --git a/plans/dotfiles-refresh-plan.md b/plans/dotfiles-refresh-plan.md new file mode 100644 index 0000000..a1f763f --- /dev/null +++ b/plans/dotfiles-refresh-plan.md @@ -0,0 +1,103 @@ +# Dotfiles Refresh Plan — Close the Fresh-Install Gap + +## Context + +The dotfiles repo hasn't been touched since it was written and the machine has drifted a lot since then — new tools, a new secondary "confidential" repo, changed preferences, and a few outright bugs that would bite on a real fresh install. The goal isn't a redesign; it's making the next fresh install actually reproduce today's machine with one command per repo, without surprises. Two live audits (repo read-through + machine inspection: `brew bundle check`, `brew leaves`/`cask` diffs, `mdls` usage stats, live-vs-repo file diffs) turned up three categories of problems: + +1. **Outright bugs** — things that would error or silently do the wrong thing on a fresh run, independent of any preference. +2. **Drift** — the live machine changed and the repo never caught up (tracked files, dock, macOS defaults). +3. **Gaps** — real tools/apps in daily use that the repo never captured at all, including a whole second repo (`dotfiles-confidential`) that isn't referenced anywhere in this one. + +Decisions already confirmed with you: keep VS Code + Cursor (drop Zed), keep `cp -a` (no symlinks, but add a way to pull live edits back into the repo), 1Password/Tailscale/NordVPN/YubiKey/Ledger Live belong to `dotfiles-confidential` (not duplicated here), drop LastPass and OrcaSlicer, and Ledger Live is being replaced by Ledger Wallet (usage data confirms: Ledger Wallet used yesterday, Ledger Live/LastPass/OrcaSlicer show zero Spotlight usage). + +## 1. Fix outright bugs + +- **`setup.sh`** calls `sh install-tools.sh` (line 7) — this file doesn't exist (renamed to `install-cli-tools.sh` at some point per git history, which is already called on line 4). Delete the dead line. +- **`Brewfile`**: `brew bundle check` fails hard on `tap "goreleaser/tap"` / `brew "goreleaser/tap/goreleaser"` — the formula no longer exists under that name. The machine actually has `goreleaser` installed as a **cask**, not the tap formula. Replace with `cask "goreleaser"` and drop the tap line. +- **`Brewfile`**: renamed cask tokens: `logi-options-plus` → `logi-options+`, `autodesk-fusion360` → `autodesk-fusion`, `opera-developer` → `opera@developer` (all three warn), and `firefox-developer-edition` → `firefox@developer-edition` (fully invalid now — `brew bundle check` errors outright on the old name, this one was missed in the initial audit and caught during implementation verification). +- **`Brewfile`**: `rustup-init` → `rustup` (the machine has the `rustup` formula installed directly; `rustup-init` is the old bootstrapper name). +- **`home/.zshrc`**: sources `$(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme` unconditionally, but the Brewfile has both the tap and formula for p10k **commented out** — so this line errors on every shell start on a fresh install. You've already worked around this locally by commenting the line out (confirmed via live diff) but never committed that fix. Plan: remove the p10k source line and the dead commented-out Brewfile entries for it, matching what you're actually running today. +- **`Brewfile`**: `mas "Grammarly for Safari"` — `mas list` shows nothing installed via the Mac App Store at all, and Grammarly is already covered by `cask "grammarly"`. Drop the stale `mas` line. +- **`home/.zshenv`** sources `$HOME/.cargo/env` unconditionally, which doesn't exist until `rustup` has actually initialized a toolchain — on a truly fresh machine this errors until that's done manually. Document as a one-line manual step in the README right after `brew bundle` ("run `rustup default stable` once") rather than scripting it, consistent with keeping things simple. + +## 2. Sync tracked dotfiles to what's actually live + +Live-vs-repo diffs turned up real drift beyond the p10k line above: + +- **`home/.zprofile`**: set `EDITOR='code'` (confirmed default), and add the `export PATH="/opt/homebrew/opt/node@22/bin:$PATH"` line that's live but untracked. +- **`home/.zshrc`**: remove the `vault` oh-my-zsh plugin (present in repo, absent live — matches you no longer using Vault), and add the Rancher-Desktop-managed PATH block (`### MANAGED BY RANCHER DESKTOP ... ###`) that's live but untracked — harmless to track even though Rancher Desktop would re-add it on first launch anyway. (The live `asdf` shims PATH line is superseded by the `mise` migration in section 7 below, not carried forward as-is.) +- **`home/.gitconfig-confidential`** is tracked in this repo **as an empty file**, while the real live file has 27 lines (work email override, etc.) and isn't backed up in *either* repo. Since `setup.sh` does `cp -a ./home/ ~/`, re-running setup would silently wipe the real file back to empty. Fix: stop tracking this file in the main repo entirely (delete it from `home/`), and move the real content into `dotfiles-confidential/home/` instead — that repo already exists specifically for private/work config and already ships `home/.ssh/config` the same way. This closes the only spot where a real secret-adjacent file was one `cp -a` away from being destroyed. +- **`osx-user-defaults.sh`** sets `com.apple.dock tilesize -int 29`; live is `71`. Everything else spot-checked (autohide, `AppleShowAllExtensions`, Finder view style) already matches. Update the script's tilesize to `71` to reflect your actual preference. +- **`setup-dock.py`** hardcodes a stale app list (includes Discord, which isn't even installed anymore; uses Chrome Canary instead of the Chrome Dev you actually use now). Update `thirdPartyApps` to match the live dock: Warp, Cursor, Visual Studio Code, Claude, Slack, Spotify, Microsoft Outlook, Brave Browser, Google Chrome Dev, Firefox Developer Edition. + +## 3. Add the real gaps to `Brewfile` + +Filtered using `brew bundle check`/`leaves`/`cask` diffs plus Spotlight `kMDItemLastUsedDate`/`kMDItemUseCount` (today is 2026-07-30) so this isn't a guess: + +**CLI tools** (all present as `brew leaves`, i.e. deliberately installed standalone — zsh history was inconclusive as a usage signal since it showed zero hits even for tools you obviously use, so "is a leaf" is the more trustworthy signal here): `gh`, `dive`, `pandoc`, `protobuf`, `jfrog-cli`, `stripe-cli`, `mole`, `svu`, `ngrok`, `docker-credential-helper`. + +**Toolchain versions actually installed** (not in Brewfile at all today): `node@22`, `go@1.21`, `gradle@7`, `openjdk@11`, `openjdk@21`, `zulu@8`. + +**Casks — confirmed active by usage data:** +- `freecad` (24 opens, last used 2026-07-27) +- `claude` (25 opens, last used 2026-07-29) +- `cursor` (confirmed by you directly, keep alongside VS Code) +- `ledger-wallet` (21 opens, last used 2026-07-28 — replacing `ledger-live`) +- `microsoft-outlook` (70 opens, last used today), `microsoft-word`, `microsoft-auto-update` (bundled MS 365 apps) + +**Casks confirmed unused, excluded per your answer and/or zero Spotlight usage:** `lastpass`, `orcaslicer` (your call), `ledger-live` (replaced), `anydesk` and `trae` (some Spotlight opens logged, but you confirmed you don't actually use either), plus two more the data flagged the same way: `ghostty` and `imhex` (both show `(null)` last-used/use-count — never actually opened). + +**Not added — already owned by `dotfiles-confidential`:** `1password`, `1password-cli`, `tailscale`, `nordvpn`, `yubico-yubikey-manager`. You confirmed both NordVPN and Tailscale stay as-is (NordVPN's `(null)` Spotlight usage stat doesn't mean it's unwanted), and that the stray `mullvadvpn` cask receipt (pointing at a `Caskroom/mullvad-vpn` folder that no longer exists) isn't required — that cleanup, like the rest of this list, belongs in `dotfiles-confidential`, not this repo. + +**Remove from Brewfile as rot (not installed / superseded):** `google-chrome-canary` (replaced by `google-chrome@dev`), `istat-menus` (replaced by `istat-menus@6`), `shiftit` (fully superseded by `rectangle`, which is already listed), `vmware-fusion` (not installed). `discord` stays in the Brewfile — you confirmed you still use it; it's just not installed on this particular machine right now. + +## 4. VS Code / Cursor extension parity + +- Delete `install-vscode-plugins.sh` — it's already commented out of `setup.sh`, and it's drifted from the Brewfile's `vscode` entries (e.g. it references `bungcip.better-toml` while the Brewfile has since moved to `tamasfe.even-better-toml`). The Brewfile's `vscode "..."` lines are the single source of truth via `brew bundle`. +- Update the Brewfile's `vscode` entries to match `code --list-extensions`: drop `VisualStudioExptTeam.intellicode-api-usage-examples`, `VisualStudioExptTeam.vscodeintellicode` (uninstalled), and `zxh404.vscode-proto3` (replaced by `drblury.protobuf-vsc`); add `anthropic.claude-code`, `docker.docker`, `drblury.protobuf-vsc`, `esbenp.prettier-vscode`, `ms-azuretools.vscode-containers`, `ms-python.debugpy`, `ms-python.vscode-python-envs`, `oracle.oracle-java`, `vscjava.vscode-gradle`. +- `brew bundle`'s `vscode` entries only target the `code` CLI, not Cursor. Add a short loop in `install-cli-tools.sh` (or a new small script) that also runs `cursor --install-extension ` for each entry, since Cursor accepts the same extension IDs. Keeps one extension list for both editors instead of maintaining two. +- Optional/nice-to-have: track Cursor's `~/Library/Application Support/Cursor/User/settings.json` and `keybindings.json` in `home/Library/...` alongside the existing VS Code ones, so Cursor's config round-trips through `cp -a` too. + +## 5. Document the two-repo install flow + +Right now `setup.sh` and `README.md` never mention `dotfiles-confidential` exists — a true fresh install today requires remembering, from memory, to separately clone and run a second private repo for 1Password/SSH/work tools. Fix: update `README.md`'s Installation section to spell out both steps explicitly (this repo first, then clone+run `dotfiles-confidential`), and add a final `echo` reminder at the end of `setup.sh` pointing at it. No new automation/cloning logic — just make the two-step reality visible instead of tribal knowledge. + +## 6. Reverse-sync helper (keeps `cp -a`, closes the drift problem) + +Per your call to keep `cp -a` rather than symlinks: add a small `sync-from-home.sh` that copies the tracked files **back** from `~` into `./home/` (mirror direction of what `setup.sh` does today). Run it before committing whenever you've tweaked `.zshrc`/`.zprofile`/VS Code settings/etc. locally — this is exactly how `.zshrc`, `.zprofile`, and the p10k line ended up silently out of sync in the first place, and a one-command pull-back fixes that without symlinks. + +## 7. Replace `asdf` with `mise` + +You said you don't like `asdf` and want something more modern — that's a reasonable call, and the ecosystem has mostly moved on. The current standard replacement is [**mise**](https://mise.jdx.dev) (formerly `rtx`): same core idea (polyglot runtime version manager, still reads `.tool-versions`), but it's a single fast Rust binary, has quicker shell activation than asdf's shim model, and is the tool most asdf users migrate to today. (The other modern contender is `proto` from the Moonrepo team, but `mise` has wider plugin coverage and is the more common default recommendation.) + +What this actually touches, since `asdf` here only has one thing in real use — a `terraform` plugin with two installed versions (1.6.6, 1.9.5); the `nodejs` plugin has zero versions installed and is dead weight, since Node already comes from `brew node@22`: + +- **`Brewfile`**: drop `brew "asdf"`, add `brew "mise"`. +- **`home/.zshrc`**: instead of carrying forward the live `asdf` shims PATH line, add `eval "$(mise activate zsh)"`. +- Migrate just the `terraform` versions: `mise use -g terraform@1.6.6` and `mise use -g terraform@1.9.5` (mise's `terraform` plugin is asdf-plugin-compatible, so this is a like-for-like swap). Drop the `nodejs` plugin rather than migrating it. +- Document one manual post-install step in the README (`mise install` to pick up the pinned versions) — same category as the `rustup default stable` step, since actual runtime installs aren't something `brew bundle` can do for you. +- Uninstall `asdf` from the machine once `mise` is confirmed working — a one-time manual cleanup for you, not scripted. + +## 8. Other modern CLI swaps you confirmed + +- **`Brewfile`**: `brew "hey"` → `brew "oha"`. `hey` (rakyll/hey) is unmaintained upstream; `oha` is an actively-maintained Rust rewrite with the same CLI shape plus a live TUI and HTTP/2/3 support. +- **`Brewfile`**: `brew "httpie"` → `brew "xh"`. `xh` is a Rust rewrite of httpie, near drop-in (has an HTTPie-compat mode), and starts noticeably faster than the Python-based original. +- **`Brewfile`**: remove `cask "keybase"` — effectively unmaintained since the Zoom acquisition (dependency bumps only, `keybase.pub` shut down in 2023), and not something you use enough to keep around. +- **`Brewfile`**: remove `cask "rapidapi"` — in maintenance mode since Nokia's 2024 acquisition of Rapid's tech, no longer actively developed. + +## Explicitly deferred / out of scope + +- No symlink/Stow migration (your call — `cp -a` stays, improved by #6 instead). +- No automation of secrets/SSH/GPG (already correctly handled by `dotfiles-confidential`). +- The stray `mullvadvpn` cask receipt cleanup and any other `dotfiles-confidential` Brewfile changes — flagged above but left to you since it's a different repo. NordVPN and Tailscale stay as-is, no change needed there. +- Stale leftover `iStat Menus.app` (old, non-`@6` copy still on disk) — cosmetic disk cruft, not a dotfiles concern. +- **OpenTofu**: considered as a Terraform alternative, but you're staying on Terraform — no change. +- **Granted**: considered for AWS SSO role-switching, but doesn't apply to how you actually use AWS SSO — not adopted. + +## Verification + +- `brew bundle check --verbose --file=Brewfile` should report all dependencies satisfied with no errors (currently hard-fails on the `goreleaser` tap formula). +- Open a new terminal tab/window after the `.zshrc`/`.zprofile`/`.zshenv` edits — no `command not found` / `no such file or directory` errors at shell start. +- `code --list-extensions` and `cursor --list-extensions` both match the Brewfile's `vscode` list. +- `git config --global --list` still resolves `user.email` correctly for both personal and work contexts after moving `.gitconfig-confidential` to `dotfiles-confidential`. +- Diff `setup-dock.py`'s app list against a live `defaults read com.apple.dock persistent-apps` dump. From 9b2070b8bc3d982fa52b965852e029b9aec750d3 Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Thu, 30 Jul 2026 19:40:19 -0300 Subject: [PATCH 03/15] Refactor dotfiles to use chezmoi Replaces the hand-rolled setup.sh + install-*.sh/osx-*.sh script pile and one-directional `cp -a ./home/ ~/` with chezmoi: dotfiles get the dot_ naming convention at repo root, and all install/setup logic moves into ordered .chezmoiscripts/ (run_once_/run_onchange_ scripts), replacing setup.sh, install-cli-tools.sh, install-homebrew.sh, install-zsh.sh, install-broswer-extensions.sh, install-cursor-plugins.sh, osx-system-defaults.sh, osx-user-defaults.sh, setup-dock.py/.sh, and sync-from-home.sh outright (chezmoi's diff/apply/re-add natively solves the drift problem sync-from-home.sh was working around). Along the way: - Dock setup now uses `brew "dockutil"` instead of an unverified curl+pkg install of the latest GitHub release, and drops the interactive confirmation prompt so it can run unattended under `chezmoi apply`. - Fonts install via `cp -n` into ~/Library/Fonts instead of a manual Font Book "Install" click-through. - Fixed macos-system-defaults running fully under `sudo` (which wrote user-domain `defaults write -g` calls to root's domain instead of the actual user's) - only the genuinely system-level calls are sudo'd now. - Fixed `dock autohide` being written without a `-bool` type flag. - Dropped the orphaned `.git-templates/hooks/prepare-commit-msg` (no `init.templatedir` ever pointed at it) and the `arkade` Brewfile entry (not installed, not a brew leaf - rot from before either audit). - Brewfile installs are now hash-gated: `run_onchange_before_10-packages` only re-runs `brew bundle` when the Brewfile's content actually changes. - Added ShellCheck + a macOS smoke-test GitHub Actions workflow. dotfiles-confidential stays untouched and fully separate, per plan. --- .chezmoiignore | 6 + .../run_once_after_20-oh-my-zsh.sh.tmpl | 12 + ...nce_after_21-macos-system-defaults.sh.tmpl | 38 +++ ..._once_after_22-macos-user-defaults.sh.tmpl | 70 +----- .../run_once_after_23-fonts.sh.tmpl | 7 + ...n_once_after_24-browser-extensions.sh.tmpl | 19 ++ .../run_once_after_30-dock.sh.tmpl | 41 ++++ ...un_once_after_40-editor-extensions.sh.tmpl | 10 + .../run_once_before_00-xcode-cli.sh.tmpl | 19 ++ .../run_once_before_01-homebrew.sh.tmpl | 10 + .../run_onchange_before_10-packages.sh.tmpl | 14 ++ .github/workflows/lint.yml | 24 ++ .github/workflows/smoke-test.yml | 24 ++ Brewfile | 2 +- .../Code/User/keybindings.json | 0 .../Code/User/settings.json | 0 .../Preferences/com.googlecode.iterm2.plist | Bin .../Preferences/dev.warp.Warp-Stable.plist | Bin README.md | 47 ++-- home/.gitconfig => dot_gitconfig | 0 .../.gitignore-global => dot_gitignore-global | 0 home/.inputrc => dot_inputrc | 0 home/.zprofile => dot_zprofile | 0 home/.zshenv => dot_zshenv | 0 home/.zshrc => dot_zshrc | 0 home/.git-templates/hooks/prepare-commit-msg | 22 -- install-broswer-extensions.sh | 28 --- install-cli-tools.sh | 11 - install-cursor-plugins.sh | 6 - install-homebrew.sh | 13 - install-zsh.sh | 5 - osx-system-defaults.sh | 41 ---- setup-dock.py | 232 ------------------ setup-dock.sh | 13 - setup.sh | 34 --- sync-from-home.sh | 16 -- 36 files changed, 260 insertions(+), 504 deletions(-) create mode 100644 .chezmoiignore create mode 100644 .chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl create mode 100644 .chezmoiscripts/run_once_after_21-macos-system-defaults.sh.tmpl rename osx-user-defaults.sh => .chezmoiscripts/run_once_after_22-macos-user-defaults.sh.tmpl (67%) mode change 100755 => 100644 create mode 100644 .chezmoiscripts/run_once_after_23-fonts.sh.tmpl create mode 100644 .chezmoiscripts/run_once_after_24-browser-extensions.sh.tmpl create mode 100644 .chezmoiscripts/run_once_after_30-dock.sh.tmpl create mode 100644 .chezmoiscripts/run_once_after_40-editor-extensions.sh.tmpl create mode 100644 .chezmoiscripts/run_once_before_00-xcode-cli.sh.tmpl create mode 100644 .chezmoiscripts/run_once_before_01-homebrew.sh.tmpl create mode 100644 .chezmoiscripts/run_onchange_before_10-packages.sh.tmpl create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/smoke-test.yml rename {home/Library => Library}/Application Support/Code/User/keybindings.json (100%) rename {home/Library => Library}/Application Support/Code/User/settings.json (100%) rename {home/Library => Library}/Preferences/com.googlecode.iterm2.plist (100%) rename {home/Library => Library}/Preferences/dev.warp.Warp-Stable.plist (100%) rename home/.gitconfig => dot_gitconfig (100%) rename home/.gitignore-global => dot_gitignore-global (100%) rename home/.inputrc => dot_inputrc (100%) rename home/.zprofile => dot_zprofile (100%) rename home/.zshenv => dot_zshenv (100%) rename home/.zshrc => dot_zshrc (100%) delete mode 100755 home/.git-templates/hooks/prepare-commit-msg delete mode 100755 install-broswer-extensions.sh delete mode 100755 install-cli-tools.sh delete mode 100755 install-cursor-plugins.sh delete mode 100755 install-homebrew.sh delete mode 100644 install-zsh.sh delete mode 100755 osx-system-defaults.sh delete mode 100644 setup-dock.py delete mode 100644 setup-dock.sh delete mode 100755 setup.sh delete mode 100755 sync-from-home.sh diff --git a/.chezmoiignore b/.chezmoiignore new file mode 100644 index 0000000..c818ad3 --- /dev/null +++ b/.chezmoiignore @@ -0,0 +1,6 @@ +Brewfile +fonts/ +plans/ +README.md +LICENSE +.github/ diff --git a/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl b/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl new file mode 100644 index 0000000..a1385cb --- /dev/null +++ b/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl @@ -0,0 +1,12 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +if [ -d "$HOME/.oh-my-zsh" ]; then + exit 0 +fi + +echo "Installing oh-my-zsh..." +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended + +compaudit | xargs chmod g-w,o-w 2>/dev/null || true diff --git a/.chezmoiscripts/run_once_after_21-macos-system-defaults.sh.tmpl b/.chezmoiscripts/run_once_after_21-macos-system-defaults.sh.tmpl new file mode 100644 index 0000000..25f60a4 --- /dev/null +++ b/.chezmoiscripts/run_once_after_21-macos-system-defaults.sh.tmpl @@ -0,0 +1,38 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +if [ -n "${CI:-}" ]; then + echo "Skipping macOS system defaults (needs sudo) in CI" + exit 0 +fi + +echo "Setting macOS system defaults..." + +IS_LAPTOP=$(/usr/sbin/system_profiler SPHardwareDataType | grep "Model Identifier" | grep "Book" || true) +if [ -n "$IS_LAPTOP" ]; then + sudo pmset -b sleep 20 disksleep 15 displaysleep 10 halfdim 1 + sudo pmset -c sleep 0 disksleep 0 displaysleep 30 halfdim 1 + + # Menu bar: show remaining battery time (on pre-10.8); hide percentage + defaults write com.apple.menuextra.battery ShowPercent -string "YES" + defaults write com.apple.menuextra.battery ShowTime -string "NO" +else + sudo pmset sleep 0 disksleep 0 displaysleep 15 halfdim 1 +fi + +# Don't show any password hints +sudo defaults write /Library/Preferences/com.apple.loginwindow RetriesUntilHint -int 0 + +# Enable key repeat +defaults write -g ApplePressAndHoldEnabled -bool false + +# Set keyboard repeat rate +defaults write -g KeyRepeat -int 2 +defaults write -g InitialKeyRepeat -int 15 + +# Disable auto-correct +defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false + +# Set scroll direction +sudo defaults write /Library/Preferences/.GlobalPreferences com.apple.swipescrolldirection -bool false diff --git a/osx-user-defaults.sh b/.chezmoiscripts/run_once_after_22-macos-user-defaults.sh.tmpl old mode 100755 new mode 100644 similarity index 67% rename from osx-user-defaults.sh rename to .chezmoiscripts/run_once_after_22-macos-user-defaults.sh.tmpl index 6b867de..9f1cf9e --- a/osx-user-defaults.sh +++ b/.chezmoiscripts/run_once_after_22-macos-user-defaults.sh.tmpl @@ -1,17 +1,17 @@ -#!/bin/zsh -echo "\nSet OsX user defaults" +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +echo "Setting macOS user defaults..." # ============================================== # Trackpad # ============================================== -# Tap to click -IS_LAPTOP=`/usr/sbin/system_profiler SPHardwareDataType | grep "Model Identifier" | grep "Book"` -if [[ "$IS_LAPTOP" != "" ]]; then +IS_LAPTOP=$(/usr/sbin/system_profiler SPHardwareDataType | grep "Model Identifier" | grep "Book" || true) +if [ -n "$IS_LAPTOP" ]; then defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true defaults -currentHost write -g com.apple.mouse.tapBehavior -int 1 - # Tap with two fingers to emulate right click defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool false - # Secondary click defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2 defaults -currentHost write -g com.apple.trackpad.trackpadCornerClickBehavior -int 1 defaults -currentHost write -g com.apple.trackpad.enableSecondaryClick -bool true @@ -22,38 +22,16 @@ defaults write com.apple.dock showAppExposeGestureEnabled -bool true defaults write com.apple.dock showDesktopGestureEnabled -bool true defaults write com.apple.dock showLaunchpadGestureEnabled -bool true -# ============================================== -# Archive Utility -# ============================================== -# Move archives to trash after extraction -# defaults write com.apple.archiveutility "dearchive-move-after" -string "~/.Trash" - -# Don't reveal extracted items -# defaults write com.apple.archiveutility "dearchive-reveal-after" -bool false - # ============================================== # Finder # ============================================== -# Expand the "Open with" and "Sharing & Permissions" panes defaults write com.apple.finder FXInfoPanesExpanded -dict OpenWith -bool true Privileges -bool true - -# Show status bar defaults write com.apple.finder ShowStatusBar -bool true - -# Show all filename extensions defaults write -g AppleShowAllExtensions -bool true - -# Show all files defaults write com.apple.finder AppleShowAllFiles -bool true - -# Finder: allow text selection in Quick Look defaults write com.apple.finder QLEnableTextSelection -bool true -# When performing a search, search the current folder by default defaults write com.apple.finder FXDefaultSearchScope -string "SCcf" -# Use column view defaults write com.apple.finder FXPreferredViewStyle -string "clmv" - -# Automatically open a new Finder window when a volume is mounted defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool false defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool false defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true @@ -65,58 +43,38 @@ defaults write com.apple.dock showAppExposeGesture -bool true defaults write com.apple.dock magnification -bool true defaults write com.apple.dock tilesize -int 71 defaults write com.apple.dock minimize-to-application -bool true -defaults write com.apple.dock autohide 1 +defaults write com.apple.dock autohide -bool true + # ============================================== # Safari & WebKit # ============================================== -# Show status bar defaults write com.apple.Safari ShowStatusBar -bool true - -# Show favorites bar defaults write com.apple.Safari ShowFavoritesBar -bool true defaults write com.apple.Safari "ShowFavoritesBar-v2" -bool true - -# New tabs open with: Empty Page defaults write com.apple.Safari NewTabBehavior -int 1 - -# Homepage defaults write com.apple.Safari HomePage -string "about:blank" - -# Open pages in tabs instead of windows: automatically defaults write com.apple.Safari TabCreationPolicy -int 1 - -# Command-clicking a link creates tabs defaults write com.apple.Safari CommandClickMakesTabs -bool true - -# Update extensions automatically defaults write com.apple.Safari InstallExtensionUpdatesAutomatically -bool true - -# Enable the Develop menu and the Web Inspector in Safari defaults write com.apple.Safari IncludeDevelopMenu -bool true defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true - -# Add a context menu item for showing the Web Inspector in web views defaults write -g WebKitDeveloperExtras -bool true - -# Prevent Safari from opening ‘safe’ files automatically after downloading - defaults write com.apple.Safari AutoOpenSafeDownloads -bool false +defaults write com.apple.Safari AutoOpenSafeDownloads -bool false # ============================================== # Terminal # ============================================== -# Set the "Pro" as the default defaults write com.apple.Terminal "Default Window Settings" -string "Pro" defaults write com.apple.Terminal "Startup Window Settings" -string "Pro" pathToTerminalPrefs="${HOME}/Library/Preferences/com.apple.Terminal.plist" -/usr/libexec/PlistBuddy -c "Add :Window\ Settings:Pro:columnCount integer 120" ${pathToTerminalPrefs} -/usr/libexec/PlistBuddy -c "Add :Window\ Settings:Pro:rowCount integer 70" ${pathToTerminalPrefs} +/usr/libexec/PlistBuddy -c "Add :Window\\ Settings:Pro:columnCount integer 120" "$pathToTerminalPrefs" 2>/dev/null || true +/usr/libexec/PlistBuddy -c "Add :Window\\ Settings:Pro:rowCount integer 70" "$pathToTerminalPrefs" 2>/dev/null || true # ============================================== # Sound # ============================================== -# Disable user interface sound efects defaults write -g "com.apple.sound.beep.feedback" -bool false defaults write com.apple.systemsound "com.apple.sound.uiaudio.enabled" -bool false @@ -128,11 +86,9 @@ defaults write com.apple.screencapture location -string "$HOME/Downloads" # ============================================== # Time Machine # ============================================== -# Prevent Time Machine from prompting to use new hard drives as backup volume - defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true +defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true # ============================================== # Applications # ============================================== -# Disable the “Are you sure you want to open this application?” dialog defaults write com.apple.LaunchServices LSQuarantine -bool false diff --git a/.chezmoiscripts/run_once_after_23-fonts.sh.tmpl b/.chezmoiscripts/run_once_after_23-fonts.sh.tmpl new file mode 100644 index 0000000..0ac5dcd --- /dev/null +++ b/.chezmoiscripts/run_once_after_23-fonts.sh.tmpl @@ -0,0 +1,7 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +echo "Installing fonts..." +mkdir -p "$HOME/Library/Fonts" +cp -n "{{ .chezmoi.sourceDir }}"/fonts/*.ttf "$HOME/Library/Fonts/" diff --git a/.chezmoiscripts/run_once_after_24-browser-extensions.sh.tmpl b/.chezmoiscripts/run_once_after_24-browser-extensions.sh.tmpl new file mode 100644 index 0000000..11598bf --- /dev/null +++ b/.chezmoiscripts/run_once_after_24-browser-extensions.sh.tmpl @@ -0,0 +1,19 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +echo "Installing Brave extensions..." +BRAVE_EXTENSIONS="$HOME/Library/Application Support/BraveSoftware/Brave-Browser/External Extensions" +mkdir -p "$BRAVE_EXTENSIONS" +echo '{"external_update_url": "https://clients2.google.com/service/update2/crx"}' > "$BRAVE_EXTENSIONS/aapbdbdomjkkjkaonfhkkikfgjllcleb.json" # Google Translate +echo '{"external_update_url": "https://clients2.google.com/service/update2/crx"}' > "$BRAVE_EXTENSIONS/kbfnbcaeplbcioakkpcpgfkobkghlhen.json" # Grammarly +echo '{"external_update_url": "https://clients2.google.com/service/update2/crx"}' > "$BRAVE_EXTENSIONS/idgpnmonknjnojddfkpgkljpfnnfcklj.json" # ModHeader +echo '{"external_update_url": "https://clients2.google.com/service/update2/crx"}' > "$BRAVE_EXTENSIONS/bcjindcccaagfpapjjmafapmmgkkhgoa.json" # JSON Formatter + +echo "Installing Chrome extensions..." +CHROME_EXTENSIONS="$HOME/Library/Application Support/Google/Chrome Dev/External Extensions" +mkdir -p "$CHROME_EXTENSIONS" +echo '{"external_update_url": "https://clients2.google.com/service/update2/crx"}' > "$CHROME_EXTENSIONS/aapbdbdomjkkjkaonfhkkikfgjllcleb.json" # Google Translate +echo '{"external_update_url": "https://clients2.google.com/service/update2/crx"}' > "$CHROME_EXTENSIONS/kbfnbcaeplbcioakkpcpgfkobkghlhen.json" # Grammarly +echo '{"external_update_url": "https://clients2.google.com/service/update2/crx"}' > "$CHROME_EXTENSIONS/idgpnmonknjnojddfkpgkljpfnnfcklj.json" # ModHeader +echo '{"external_update_url": "https://clients2.google.com/service/update2/crx"}' > "$CHROME_EXTENSIONS/bcjindcccaagfpapjjmafapmmgkkhgoa.json" # JSON Formatter diff --git a/.chezmoiscripts/run_once_after_30-dock.sh.tmpl b/.chezmoiscripts/run_once_after_30-dock.sh.tmpl new file mode 100644 index 0000000..f906e39 --- /dev/null +++ b/.chezmoiscripts/run_once_after_30-dock.sh.tmpl @@ -0,0 +1,41 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +if ! command -v dockutil >/dev/null 2>&1; then + echo "dockutil not found, skipping Dock setup" + exit 0 +fi + +echo "Configuring Dock..." +dockutil --remove all --no-restart + +dockutil --add "/System/Applications/Launchpad.app" --no-restart +dockutil --add "/System/Applications/Mission Control.app" --no-restart +dockutil --add "/System/Applications/System Settings.app" --no-restart +dockutil --add "/Applications/Safari.app" --no-restart + +for app in \ + "/Applications/Warp.app" \ + "/Applications/Cursor.app" \ + "/Applications/Visual Studio Code.app" \ + "/Applications/Claude.app" \ + "/Applications/Brave Browser.app" \ + "/Applications/Google Chrome Dev.app" \ + "/Applications/Firefox Developer Edition.app" \ + "/Applications/Slack.app" \ + "/Applications/Spotify.app" \ + "/Applications/Microsoft Outlook.app"; do + if [ -d "$app" ]; then + dockutil --add "$app" --no-restart + fi +done + +if [ -d "$HOME/Documents" ]; then + dockutil --add "$HOME/Documents" --view grid --display stack --sort name --no-restart +fi +if [ -d "$HOME/Downloads" ]; then + dockutil --add "$HOME/Downloads" --view grid --display stack --sort dateadded --no-restart +fi + +killall Dock || true diff --git a/.chezmoiscripts/run_once_after_40-editor-extensions.sh.tmpl b/.chezmoiscripts/run_once_after_40-editor-extensions.sh.tmpl new file mode 100644 index 0000000..039870f --- /dev/null +++ b/.chezmoiscripts/run_once_after_40-editor-extensions.sh.tmpl @@ -0,0 +1,10 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +if command -v cursor >/dev/null 2>&1; then + echo "Installing Brewfile's vscode extensions into Cursor..." + grep -oE '^vscode "[^"]+"' "{{ .chezmoi.sourceDir }}/Brewfile" | sed -E 's/vscode "//;s/"//' | while read -r extension; do + cursor --install-extension "$extension" + done +fi diff --git a/.chezmoiscripts/run_once_before_00-xcode-cli.sh.tmpl b/.chezmoiscripts/run_once_before_00-xcode-cli.sh.tmpl new file mode 100644 index 0000000..3020af0 --- /dev/null +++ b/.chezmoiscripts/run_once_before_00-xcode-cli.sh.tmpl @@ -0,0 +1,19 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +if [ -n "${CI:-}" ]; then + echo "Skipping Xcode CLI tools / Software Update in CI" + exit 0 +fi + +echo "Installing Xcode Command Line Tools..." +xcode-select -p >/dev/null 2>&1 || xcode-select --install + +echo "Checking for macOS software updates..." +softwareupdate -ia --verbose + +if [ "$(uname -m)" = "arm64" ]; then + echo "Installing Rosetta 2..." + softwareupdate --install-rosetta --agree-to-license +fi diff --git a/.chezmoiscripts/run_once_before_01-homebrew.sh.tmpl b/.chezmoiscripts/run_once_before_01-homebrew.sh.tmpl new file mode 100644 index 0000000..acf8536 --- /dev/null +++ b/.chezmoiscripts/run_once_before_01-homebrew.sh.tmpl @@ -0,0 +1,10 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +if command -v brew >/dev/null 2>&1; then + exit 0 +fi + +echo "Installing Homebrew..." +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" diff --git a/.chezmoiscripts/run_onchange_before_10-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_10-packages.sh.tmpl new file mode 100644 index 0000000..69217b6 --- /dev/null +++ b/.chezmoiscripts/run_onchange_before_10-packages.sh.tmpl @@ -0,0 +1,14 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +# Brewfile hash: {{ include "Brewfile" | sha256sum }} +set -euo pipefail + +if ! command -v brew >/dev/null 2>&1; then + eval "$(/opt/homebrew/bin/brew shellenv 2>/dev/null || /usr/local/bin/brew shellenv)" +fi + +echo "Installing Homebrew packages..." +brew bundle --file="{{ .chezmoi.sourceDir }}/Brewfile" + +echo "Cleaning up old formulae..." +brew cleanup --prune=all diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..d05dc22 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: Lint + +on: + push: + pull_request: + +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Strip chezmoi template guards for linting + run: | + mkdir -p /tmp/lint + for f in .chezmoiscripts/*.tmpl; do + base=$(basename "$f" .tmpl) + sed -E 's/\{\{.*\}\}//g' "$f" > "/tmp/lint/$base" + done + + - name: ShellCheck + uses: ludeeus/action-shellcheck@master + with: + scandir: /tmp/lint diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml new file mode 100644 index 0000000..66a2308 --- /dev/null +++ b/.github/workflows/smoke-test.yml @@ -0,0 +1,24 @@ +name: Smoke Test + +on: + push: + pull_request: + +jobs: + chezmoi-apply: + runs-on: macos-latest + env: + CI: "true" + steps: + - uses: actions/checkout@v4 + + - name: Install chezmoi + run: | + sh -c "$(curl -fsLS get.chezmoi.io)" -- -b "$HOME/.local/bin" + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + + - name: chezmoi diff + run: chezmoi diff --source="$GITHUB_WORKSPACE" + + - name: chezmoi apply + run: chezmoi apply --source="$GITHUB_WORKSPACE" --force diff --git a/Brewfile b/Brewfile index 989c969..073f0a8 100644 --- a/Brewfile +++ b/Brewfile @@ -11,7 +11,6 @@ tap "iann0036/iamlive" tap "warrensbox/tap" brew "ansible" -brew "arkade" brew "awscli" brew "bash" brew "bat" @@ -22,6 +21,7 @@ brew "dfu-util" brew "dive" brew "docker-compose" brew "docker-credential-helper" +brew "dockutil" brew "dos2unix" brew "fd" brew "gettext" diff --git a/home/Library/Application Support/Code/User/keybindings.json b/Library/Application Support/Code/User/keybindings.json similarity index 100% rename from home/Library/Application Support/Code/User/keybindings.json rename to Library/Application Support/Code/User/keybindings.json diff --git a/home/Library/Application Support/Code/User/settings.json b/Library/Application Support/Code/User/settings.json similarity index 100% rename from home/Library/Application Support/Code/User/settings.json rename to Library/Application Support/Code/User/settings.json diff --git a/home/Library/Preferences/com.googlecode.iterm2.plist b/Library/Preferences/com.googlecode.iterm2.plist similarity index 100% rename from home/Library/Preferences/com.googlecode.iterm2.plist rename to Library/Preferences/com.googlecode.iterm2.plist diff --git a/home/Library/Preferences/dev.warp.Warp-Stable.plist b/Library/Preferences/dev.warp.Warp-Stable.plist similarity index 100% rename from home/Library/Preferences/dev.warp.Warp-Stable.plist rename to Library/Preferences/dev.warp.Warp-Stable.plist diff --git a/README.md b/README.md index df3d136..238401e 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,20 @@ # Fabiano's dotfiles -This repository include all of my custom dotfiles. - -This include the following step. - * install xcode-cli - * install homebrew - * install all applications from homebrew - * install VS Code / Cursor extensions - * install external softwares - * run set OsX system defaults - * run set user defaults - * copy configurations to home user folder - * install latest updates from app store - * configure Dock with the applications -## Installation +Managed with [chezmoi](https://www.chezmoi.io). Covers Homebrew packages, shell config, macOS defaults, Dock, and editor extensions (VS Code + Cursor). + +This is a two-repo setup. This repo covers everything public. A second, private repo — `dotfiles-confidential` — covers 1Password, SSH, and work-specific tools, and is run separately (see below). -This is a two-repo setup. This repo covers everything public (Homebrew packages, shell config, macOS defaults, Dock). A second, private repo — `dotfiles-confidential` — covers 1Password, SSH, and work-specific tools, and needs to be run separately. +## Installation ### 1. This repo ```bash -mkdir dotfiles -cd dotfiles -curl -#L http://github.com/ffrizzo/dotfiles/tarball/master | tar -xvz --strip-components 1 -chmod +x *.sh -sh setup.sh -cd .. -rm -rf dotfiles +sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply ffrizzo/dotfiles ``` -A couple of things `brew bundle` can't do for you, run once after `setup.sh` finishes: +This installs chezmoi, clones this repo, and applies everything: Xcode CLI tools, Homebrew plus every package in `Brewfile`, oh-my-zsh, macOS system/user defaults, fonts, browser extension stubs, Dock layout, and VS Code/Cursor extensions. See `.chezmoiscripts/` for exactly what runs and in what order. + +A couple of things `chezmoi apply` can't do for you, run once afterward: - `rustup default stable` — finishes the Rust toolchain setup. - `mise install` — installs the pinned runtime versions (e.g. Terraform) that `mise` manages. @@ -44,6 +29,18 @@ cd .. rm -rf dotfiles-confidential ``` -### Keeping tracked dotfiles in sync +## Day-to-day usage + +- `chezmoi edit ~/.zshrc` — edit a managed file (opens the source file, e.g. `dot_zshrc`). +- `chezmoi diff` — preview what `chezmoi apply` would change before changing anything. +- `chezmoi apply` — apply the source state to `$HOME`. +- `chezmoi re-add` — pull a file you edited directly (e.g. `~/.zshrc`) back into the source state, so it's ready to commit. +- `chezmoi cd` — cd into the source directory to commit/push changes. + +## Structure -`setup.sh` copies `./home/` into `~/` (not symlinked), so local edits to files like `.zshrc` don't automatically flow back into the repo. Run `sh sync-from-home.sh` before committing to pull your current `~/.zshrc`, `~/.zprofile`, etc. back into `./home/`. +- `Brewfile` — Homebrew formulae, casks, and VS Code extensions, installed via `brew bundle`. +- `.chezmoiscripts/` — install/setup scripts, run in order by `chezmoi apply` (numeric prefix = order; `run_once_` = once ever per machine; `run_onchange_` = re-runs when its own rendered content changes, e.g. the Brewfile install script re-runs whenever `Brewfile` changes). +- `dot_*` — dotfiles, applied to `$HOME` (e.g. `dot_zshrc` → `~/.zshrc`). +- `Library/` — app preferences/settings applied under `~/Library` (VS Code, iTerm2, Warp). +- `fonts/` — bundled fonts, installed by `.chezmoiscripts/run_once_after_23-fonts.sh.tmpl`. diff --git a/home/.gitconfig b/dot_gitconfig similarity index 100% rename from home/.gitconfig rename to dot_gitconfig diff --git a/home/.gitignore-global b/dot_gitignore-global similarity index 100% rename from home/.gitignore-global rename to dot_gitignore-global diff --git a/home/.inputrc b/dot_inputrc similarity index 100% rename from home/.inputrc rename to dot_inputrc diff --git a/home/.zprofile b/dot_zprofile similarity index 100% rename from home/.zprofile rename to dot_zprofile diff --git a/home/.zshenv b/dot_zshenv similarity index 100% rename from home/.zshenv rename to dot_zshenv diff --git a/home/.zshrc b/dot_zshrc similarity index 100% rename from home/.zshrc rename to dot_zshrc diff --git a/home/.git-templates/hooks/prepare-commit-msg b/home/.git-templates/hooks/prepare-commit-msg deleted file mode 100755 index 429babb..0000000 --- a/home/.git-templates/hooks/prepare-commit-msg +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/zsh - -# Comment this line if you want to always concatenate the branch name when it is missing. -# This line will avoid the rebase message changes that is a little annoying. -if [ -n "$COMMIT_MSG_FILE" ];then return; fi - -# Include any branches for which you wish to disable this script -if [ -z "$BRANCHES_TO_SKIP" ]; then - BRANCHES_TO_SKIP=(master develop staging test) -fi - -COMMIT_MSG_FILE=$1 -BRANCH_NAME=$(git symbolic-ref --short HEAD | sed 's/\(.*-[0-9][0-9]*\).*/\1/') -BRANCH_NAME="${BRANCH_NAME##*/}" - -BRANCH_EXCLUDED=$(printf "%s\n" "${BRANCHES_TO_SKIP[@]}" | grep -c "^$BRANCH_NAME$") - -if [ -n "$BRANCH_NAME" ] && - [ $(head -1 ${COMMIT_MSG_FILE}|grep -c "${BRANCH_NAME}" ) = 0 ] && - ! [[ $BRANCH_EXCLUDED -eq 1 ]]; then - sed -i.bak -e "1s/^/[${BRANCH_NAME}] /" ${COMMIT_MSG_FILE} -fi diff --git a/install-broswer-extensions.sh b/install-broswer-extensions.sh deleted file mode 100755 index d181501..0000000 --- a/install-broswer-extensions.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/zsh -echo "\nInstalling Brave extensions..." -BRAVE_EXTENSIONS=~/Library/Application\ Support/BraveSoftware/Brave-Browser/External\ Extensions - -mkdir -p ${BRAVE_EXTENSIONS} -# Google Translate -echo "{\"external_update_url\": \"https://clients2.google.com/service/update2/crx\"}" > ${BRAVE_EXTENSIONS}/aapbdbdomjkkjkaonfhkkikfgjllcleb.json -# Grammarly -echo "{\"external_update_url\": \"https://clients2.google.com/service/update2/crx\"}" > ${BRAVE_EXTENSIONS}/kbfnbcaeplbcioakkpcpgfkobkghlhen.json -# ModHeader -echo "{\"external_update_url\": \"https://clients2.google.com/service/update2/crx\"}" > ${BRAVE_EXTENSIONS}/idgpnmonknjnojddfkpgkljpfnnfcklj.json -# JSON Formatter -echo "{\"external_update_url\": \"https://clients2.google.com/service/update2/crx\"}" > ${BRAVE_EXTENSIONS}/bcjindcccaagfpapjjmafapmmgkkhgoa.json - -echo "\nInstalling Chrome extensions..." -CHROME_EXTENSIONS=~/Library/Application\ Support/Google/Chrome\ Canary/External\ Extensions/ - -mkdir -p ${CHROME_EXTENSIONS} -# Google Translate -echo "{\"external_update_url\": \"https://clients2.google.com/service/update2/crx\"}" > ${CHROME_EXTENSIONS}/aapbdbdomjkkjkaonfhkkikfgjllcleb.json -# Grammarly -echo "{\"external_update_url\": \"https://clients2.google.com/service/update2/crx\"}" > ${CHROME_EXTENSIONS}/kbfnbcaeplbcioakkpcpgfkobkghlhen.json -# ModHeader -echo "{\"external_update_url\": \"https://clients2.google.com/service/update2/crx\"}" > ${CHROME_EXTENSIONS}/idgpnmonknjnojddfkpgkljpfnnfcklj.json -# JSON Formatter -echo "{\"external_update_url\": \"https://clients2.google.com/service/update2/crx\"}" > ${CHROME_EXTENSIONS}/bcjindcccaagfpapjjmafapmmgkkhgoa.json - -echo "\nInstalling Firefox extensions..." diff --git a/install-cli-tools.sh b/install-cli-tools.sh deleted file mode 100755 index 2842b00..0000000 --- a/install-cli-tools.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/zsh -echo "\nInstalling latest CLI Tools..." -xcode-select --install - -echo "\nSoftware Update..." -softwareupdate -ia --verbose - -if [[ $(uname -m) == 'arm64' ]]; then - echo "\nInstalling Roseta..." - sudo softwareupdate --install-rosetta -fi \ No newline at end of file diff --git a/install-cursor-plugins.sh b/install-cursor-plugins.sh deleted file mode 100755 index d4c1494..0000000 --- a/install-cursor-plugins.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/zsh -echo "\nInstalling Brewfile's vscode extensions into Cursor..." - -grep -oE '^vscode "[^"]+"' Brewfile | sed -E 's/vscode "//;s/"//' | while read -r extension; do - cursor --install-extension "$extension" -done diff --git a/install-homebrew.sh b/install-homebrew.sh deleted file mode 100755 index e275eb5..0000000 --- a/install-homebrew.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/zsh -echo "\nInstaling Homebrew" -export HOMEBREW_CASK_OPTS="--appdir=/Applications" - -# Installl homebrew -/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - -eval "$(/opt/homebrew/bin/brew shellenv)" - -echo "\nInstaling applications from homebrew" -brew bundle -echo "\nCleanup brew formulas" -brew cleanup --prune=all diff --git a/install-zsh.sh b/install-zsh.sh deleted file mode 100644 index 6788073..0000000 --- a/install-zsh.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/zsh -echo "\nInstall oh-my-zsh..." -sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - -compaudit | xargs chmod g-w,o-w diff --git a/osx-system-defaults.sh b/osx-system-defaults.sh deleted file mode 100755 index 840ab2c..0000000 --- a/osx-system-defaults.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/zsh -echo "\nSet OsX system defaults" -# ============================================== -# Set energy preferences -# ============================================== -IS_LAPTOP=`/usr/sbin/system_profiler SPHardwareDataType | grep "Model Identifier" | grep "Book"` -if [[ "$IS_LAPTOP" != "" ]]; then - pmset -b sleep 20 disksleep 15 displaysleep 10 halfdim 1 - pmset -c sleep 0 disksleep 0 displaysleep 30 halfdim 1 - - # Menu bar: show remaining battery time (on pre-10.8); hide percentage - defaults write com.apple.menuextra.battery ShowPercent -string "YES" - defaults write com.apple.menuextra.battery ShowTime -string "NO" -else - pmset sleep 0 disksleep 0 displaysleep 15 halfdim 1 -fi - -# ============================================== -# Login window -# ============================================== -# Don't show any password hints -defaults write /Library/Preferences/com.apple.loginwindow RetriesUntilHint -int 0 - -# ============================================== -# Set keyboard preferences -# ============================================== -# Enable key repeat -defaults write -g ApplePressAndHoldEnabled -bool false - -# Set keyboard repeat rate -defaults write -g KeyRepeat -int 2 -defaults write -g InitialKeyRepeat -int 15 - -# ============================================== -# Set Input preferences -# ============================================== -# Disable auto-correct - defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false - -# Set scroll direction -defaults write /Library/Preferences/.GlobalPreferences com.apple.swipescrolldirection -bool false diff --git a/setup-dock.py b/setup-dock.py deleted file mode 100644 index 866fb43..0000000 --- a/setup-dock.py +++ /dev/null @@ -1,232 +0,0 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -setup-dock.py - -This script configures the Dock content the -way I like it. Use with caution... - -Hannes Juutilainen - -Update to python3 by -Fabiano Frizzo -""" - -import io -import sys -import os -import subprocess -import plistlib -import getpass - -# ======================================= -# Standard Applications -# ======================================= -appleApps = [ - "/System/Applications/Launchpad.app", - "/System/Applications/Mission Control.app", - "/System/Applications/System Settings.app", - "/Applications/Safari.app" -] - -# ======================================= -# Optional Applications -# Add these if they exist or "forced"==True -# ======================================= -thirdPartyApps = [ - { - "path": "/Applications/Warp.app", - "args": ["--after", "System Settings"], - "forced": True - }, - { - "path": "/Applications/Cursor.app", - "args": ["--after", "Warp"], - "forced": True - }, - { - "path": "/Applications/Visual Studio Code.app", - "args": ["--after", "System Settings"], - "forced": True - }, - { - "path": "/Applications/Claude.app", - "args": ["--after", "System Settings"], - "forced": True - }, - { - "path": "/Applications/Brave Browser.app", - "args": ["--after", "Safari"], - "forced": True - }, - { - "path": "/Applications/Google Chrome Dev.app", - "args": ["--after", "Safari"], - "forced": True - }, - { - "path": "/Applications/Firefox Developer Edition.app", - "args": ["--after", "Safari"], - "forced": True - }, - { - "path": "/Applications/Slack.app", - "args": ["--after", "Safari"], - "forced": True - }, - { - "path": "/Applications/Spotify.app", - "args": ["--after", "Safari"], - "forced": True - }, - { - "path": "/Applications/Microsoft Outlook.app", - "args": ["--after", "Safari"], - "forced": True - } -] - -dockutilPath = "" - - -class Usage(Exception): - def __init__(self, msg): - self.msg = msg - - -def dockutilExists(): - whichProcess = ["which", "dockutil"] - p = subprocess.Popen(whichProcess, bufsize=1, - stdout=subprocess.PIPE, stderr=subprocess.PIPE) - (path, err) = p.communicate() - if os.path.exists(path.strip()): - global dockutilPath - dockutilPath = path.strip() - return True - else: - return False - - -def removeEverything(restartDock=False): - dockutilProcess = [dockutilPath, "--remove", "all"] - if not restartDock: - dockutilProcess.append("--no-restart") - p = subprocess.Popen(dockutilProcess, bufsize=1, - stdout=subprocess.PIPE, stderr=subprocess.PIPE) - (output, err) = p.communicate() - pass - - -def dockutilAdd(aPath, args): - dockutilProcess = [dockutilPath, "--add", aPath] - if args: - dockutilProcess = dockutilProcess + args - dockutilProcess.append("--no-restart") - p = subprocess.Popen(dockutilProcess, bufsize=1, - stdout=subprocess.PIPE, stderr=subprocess.PIPE) - (output, err) = p.communicate() - pass - - -def localDisks(): - """Run diskutil list -plist """ - diskutilProcess = ["diskutil", "list", "-plist"] - p = subprocess.Popen(diskutilProcess, bufsize=1, - stdout=subprocess.PIPE, stderr=subprocess.PIPE) - (output, err) = p.communicate() - if output != "": - outputPlist = plistlib.load(io.BytesIO(output)) - return outputPlist['VolumesFromDisks'] - else: - return None - - -def addFolders(): - """ - Loop through all local disks and check if they contain: - /Users/username/Documents - /Users/username/Downloads - or - /home/username/Documents - /home/username/Downloads - - Add everything that exists. - """ - username = getpass.getuser() - pathsToCheckInDisks = ["Users", "home"] - for aDisk in localDisks(): - diskPath = os.path.join("/Volumes", aDisk) - for aPath in pathsToCheckInDisks: - homePath = os.path.join(diskPath, aPath, username) - homePath = os.path.realpath(homePath) - documents = os.path.join(homePath, "Documents") - downloads = os.path.join(homePath, "Downloads") - if os.path.exists(documents): - label = "Documents" - args = [ - "--view", "grid", - "--display", "stack", - "--sort", "name", - "--label", label - ] - dockutilAdd(documents, args) - print("Added %s" % documents) - if os.path.exists(downloads): - label = "Downloads" - args = [ - "--view", "grid", - "--display", "stack", - "--sort", "dateadded", - "--label", label - ] - dockutilAdd(downloads, args) - print("Added %s" % downloads) - - -def main(argv=None): - if argv is None: - argv = sys.argv - try: - if not dockutilExists(): - print("dockutil not found") - print("Get it from https://github.com/kcrawford/dockutil") - print("or run \"git clone https://github.com/kcrawford/dockutil.git\"") - return 1 - - confirmation = input("Are you sure? y/n: ").lower() - if confirmation == 'y': - print("Continuing...") - elif confirmation == '' or confirmation == 'n': - raise Usage("Exiting...") - else: - print('Please enter y or n.') - return 1 - - # Start with an empty Dock - removeEverything(restartDock=False) - - # Add standard Apple apps - for anApp in appleApps: - dockutilAdd(anApp, None) - print("Added %s" % anApp) - - # Add 3rd party apps - for anApp in thirdPartyApps: - if os.path.exists(anApp["path"]) or anApp["forced"]: - dockutilAdd(anApp["path"], anApp["args"]) - print("Added %s" % anApp["path"]) - else: - print("Skipped %s" % anApp["path"]) - - # Add folders - addFolders() - - print("Done. You might want to restart Dock by running \"killall Dock\"") - - except Usage as err: - print(">> %s\n" % err, file=sys.stderr) - return 2 - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/setup-dock.sh b/setup-dock.sh deleted file mode 100644 index 7caff9c..0000000 --- a/setup-dock.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/zsh - -echo "\nSetup apps on dock..." - -ASSET=$(curl -s https://api.github.com/repos/kcrawford/dockutil/releases/latest | jq '.assets[0]') -URL=$(jq -r '.browser_download_url' <<< $ASSET) -FILE=$(jq -r '.name' <<< $ASSET) - -curl -L $URL -o $FILE -sudo installer -pkg $FILE -target / -python3 setup-dock.py -killall Dock -rm -rf $FILE diff --git a/setup.sh b/setup.sh deleted file mode 100755 index a4421ea..0000000 --- a/setup.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/zsh -echo "\nSetup OsX..." - -sh install-cli-tools.sh - -sh install-homebrew.sh -sh install-broswer-extensions.sh - -sudo sh osx-system-defaults.sh -sh osx-user-defaults.sh - -mkdir -p ~/.pyenv - -sudo ln -sf $(brew --prefix bash)/bin/bash /usr/local/bin/bash - -echo "\nInstalling Fonts" -open -a Font\ Book ./fonts/*.ttf - -sh setup-dock.sh - -sh install-zsh.sh -yes | cp -a ./home/ ~/ - -echo "\nInstalling Brewfile's VS Code extensions on Cursor..." -sh install-cursor-plugins.sh - -echo "\n==================================================" -echo "Almost done. A couple of things brew bundle can't do for you:" -echo " - run 'rustup default stable' once to finish the Rust toolchain setup" -echo " - run 'mise install' once to pick up the pinned terraform versions" -echo " - clone and run the dotfiles-confidential repo for 1Password/SSH/work tools:" -echo " git clone git@github.com:ffrizzo/dotfiles-confidential.git" -echo " cd dotfiles-confidential && sh setup.sh" -echo "==================================================" diff --git a/sync-from-home.sh b/sync-from-home.sh deleted file mode 100755 index 5c636dc..0000000 --- a/sync-from-home.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/zsh -# Mirror of setup.sh's `cp -a ./home/ ~/`, but in reverse: pulls each tracked -# dotfile back from $HOME into ./home/ so local edits can be reviewed and -# committed instead of silently drifting out of sync with the repo. -echo "\nSyncing tracked dotfiles back from ~ into ./home ..." - -find ./home -type f | while read -r file; do - relative_path=${file#./home/} - source="$HOME/$relative_path" - if [ -f "$source" ]; then - cp -a "$source" "$file" - echo "Synced $relative_path" - else - echo "Skipped $relative_path (not found in \$HOME)" - fi -done From 93fa49103628f61336e804bc81c570f2542180c4 Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Thu, 30 Jul 2026 19:40:41 -0300 Subject: [PATCH 04/15] Make .chezmoiscripts executable Matches convention for chezmoi run_ scripts. --- .chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl | 0 .chezmoiscripts/run_once_after_21-macos-system-defaults.sh.tmpl | 0 .chezmoiscripts/run_once_after_22-macos-user-defaults.sh.tmpl | 0 .chezmoiscripts/run_once_after_23-fonts.sh.tmpl | 0 .chezmoiscripts/run_once_after_24-browser-extensions.sh.tmpl | 0 .chezmoiscripts/run_once_after_30-dock.sh.tmpl | 0 .chezmoiscripts/run_once_after_40-editor-extensions.sh.tmpl | 0 .chezmoiscripts/run_once_before_00-xcode-cli.sh.tmpl | 0 .chezmoiscripts/run_once_before_01-homebrew.sh.tmpl | 0 .chezmoiscripts/run_onchange_before_10-packages.sh.tmpl | 0 10 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl mode change 100644 => 100755 .chezmoiscripts/run_once_after_21-macos-system-defaults.sh.tmpl mode change 100644 => 100755 .chezmoiscripts/run_once_after_22-macos-user-defaults.sh.tmpl mode change 100644 => 100755 .chezmoiscripts/run_once_after_23-fonts.sh.tmpl mode change 100644 => 100755 .chezmoiscripts/run_once_after_24-browser-extensions.sh.tmpl mode change 100644 => 100755 .chezmoiscripts/run_once_after_30-dock.sh.tmpl mode change 100644 => 100755 .chezmoiscripts/run_once_after_40-editor-extensions.sh.tmpl mode change 100644 => 100755 .chezmoiscripts/run_once_before_00-xcode-cli.sh.tmpl mode change 100644 => 100755 .chezmoiscripts/run_once_before_01-homebrew.sh.tmpl mode change 100644 => 100755 .chezmoiscripts/run_onchange_before_10-packages.sh.tmpl diff --git a/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl b/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl old mode 100644 new mode 100755 diff --git a/.chezmoiscripts/run_once_after_21-macos-system-defaults.sh.tmpl b/.chezmoiscripts/run_once_after_21-macos-system-defaults.sh.tmpl old mode 100644 new mode 100755 diff --git a/.chezmoiscripts/run_once_after_22-macos-user-defaults.sh.tmpl b/.chezmoiscripts/run_once_after_22-macos-user-defaults.sh.tmpl old mode 100644 new mode 100755 diff --git a/.chezmoiscripts/run_once_after_23-fonts.sh.tmpl b/.chezmoiscripts/run_once_after_23-fonts.sh.tmpl old mode 100644 new mode 100755 diff --git a/.chezmoiscripts/run_once_after_24-browser-extensions.sh.tmpl b/.chezmoiscripts/run_once_after_24-browser-extensions.sh.tmpl old mode 100644 new mode 100755 diff --git a/.chezmoiscripts/run_once_after_30-dock.sh.tmpl b/.chezmoiscripts/run_once_after_30-dock.sh.tmpl old mode 100644 new mode 100755 diff --git a/.chezmoiscripts/run_once_after_40-editor-extensions.sh.tmpl b/.chezmoiscripts/run_once_after_40-editor-extensions.sh.tmpl old mode 100644 new mode 100755 diff --git a/.chezmoiscripts/run_once_before_00-xcode-cli.sh.tmpl b/.chezmoiscripts/run_once_before_00-xcode-cli.sh.tmpl old mode 100644 new mode 100755 diff --git a/.chezmoiscripts/run_once_before_01-homebrew.sh.tmpl b/.chezmoiscripts/run_once_before_01-homebrew.sh.tmpl old mode 100644 new mode 100755 diff --git a/.chezmoiscripts/run_onchange_before_10-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_10-packages.sh.tmpl old mode 100644 new mode 100755 From 0fd3edd57a7e3733b6a82ffde1633582fdd7940d Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Thu, 30 Jul 2026 20:03:25 -0300 Subject: [PATCH 05/15] Fix issues found in independent review - run_once_after_30-dock.sh.tmpl: dockutil is now a Homebrew formula (installed to /opt/homebrew/bin), which isn't on PATH within this script's own process since each .chezmoiscripts file runs independently - the packages script's `eval brew shellenv` doesn't carry over. Without this, dockutil silently wouldn't be found on a genuinely fresh machine and the run_once script would never retry. Added the same shellenv bootstrap used in the packages script before the dockutil check. - run_onchange_before_10-packages.sh.tmpl: running a full `brew bundle` against the entire Brewfile on every CI push (dozens of formulae/casks, several JDKs, full browsers, CAD apps) risked exceeding GitHub-hosted macOS runners' disk/time budget, making the smoke test flaky for reasons unrelated to the change under test. Tried validating individual formula/cask names via `brew info` in CI first, but that produces false positives on legitimate third-party-tap entries (svu, goreleaser) that Homebrew's tap-trust model blocks from `brew info` without an explicit `brew trust` - confirmed by testing both directly. Settled on `brew bundle list`, which validates the Brewfile's syntax without attempting to resolve or install anything, and documented in both the script and README that catching renamed/removed formulas is still a manual `brew bundle check --verbose` step after editing Brewfile. --- .chezmoiscripts/run_once_after_30-dock.sh.tmpl | 4 ++++ .../run_onchange_before_10-packages.sh.tmpl | 12 ++++++++++++ README.md | 4 ++++ 3 files changed, 20 insertions(+) diff --git a/.chezmoiscripts/run_once_after_30-dock.sh.tmpl b/.chezmoiscripts/run_once_after_30-dock.sh.tmpl index f906e39..3b45509 100755 --- a/.chezmoiscripts/run_once_after_30-dock.sh.tmpl +++ b/.chezmoiscripts/run_once_after_30-dock.sh.tmpl @@ -2,6 +2,10 @@ {{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} set -euo pipefail +if ! command -v dockutil >/dev/null 2>&1; then + eval "$(/opt/homebrew/bin/brew shellenv 2>/dev/null || /usr/local/bin/brew shellenv 2>/dev/null)" || true +fi + if ! command -v dockutil >/dev/null 2>&1; then echo "dockutil not found, skipping Dock setup" exit 0 diff --git a/.chezmoiscripts/run_onchange_before_10-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_10-packages.sh.tmpl index 69217b6..869ba1d 100755 --- a/.chezmoiscripts/run_onchange_before_10-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_10-packages.sh.tmpl @@ -7,6 +7,18 @@ if ! command -v brew >/dev/null 2>&1; then eval "$(/opt/homebrew/bin/brew shellenv 2>/dev/null || /usr/local/bin/brew shellenv)" fi +if [ -n "${CI:-}" ]; then + # Only checks that the Brewfile's bundle DSL parses; it deliberately does + # NOT try to resolve every formula/cask name (third-party-tap entries like + # svu/goreleaser fail that check unless explicitly `brew trust`-ed, which + # would make this a trust-model test instead of a Brewfile syntax test). + # Run `brew bundle check --verbose` locally after editing the Brewfile to + # catch renamed/removed formulas - see README. + echo "CI: validating Brewfile syntax without installing everything in it" + brew bundle list --file="{{ .chezmoi.sourceDir }}/Brewfile" >/dev/null + exit 0 +fi + echo "Installing Homebrew packages..." brew bundle --file="{{ .chezmoi.sourceDir }}/Brewfile" diff --git a/README.md b/README.md index 238401e..6001f2f 100644 --- a/README.md +++ b/README.md @@ -44,3 +44,7 @@ rm -rf dotfiles-confidential - `dot_*` — dotfiles, applied to `$HOME` (e.g. `dot_zshrc` → `~/.zshrc`). - `Library/` — app preferences/settings applied under `~/Library` (VS Code, iTerm2, Warp). - `fonts/` — bundled fonts, installed by `.chezmoiscripts/run_once_after_23-fonts.sh.tmpl`. + +## Maintenance + +After editing `Brewfile`, run `brew bundle check --verbose --no-upgrade --file=Brewfile` locally to catch renamed/removed formulas and casks before committing — CI only checks that the file parses, not that every entry still resolves (see the comment in `run_onchange_before_10-packages.sh.tmpl` for why). From 3ab8b9e8e604edcce27e062118745d7cca189acb Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Thu, 30 Jul 2026 20:15:02 -0300 Subject: [PATCH 06/15] Fix oh-my-zsh script shebang: compaudit is a zsh builtin, not bash Caught by the GitHub Actions smoke test - compaudit failed with "command not found" under bash. It's a zsh completion-system function that needs `autoload -U compaudit` first, not a standalone binary, so the script needs `#!/bin/zsh`. Was silently swallowed by the trailing `|| true` (the script "succeeded" but never actually fixed the completion directory permissions). --- .chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl b/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl index a1385cb..a73de2c 100755 --- a/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl +++ b/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/zsh {{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} set -euo pipefail @@ -9,4 +9,5 @@ fi echo "Installing oh-my-zsh..." sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended +autoload -U compaudit compaudit | xargs chmod g-w,o-w 2>/dev/null || true From 917ced51d205f52001e321a76de7a5c10f58252c Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Thu, 30 Jul 2026 20:16:31 -0300 Subject: [PATCH 07/15] Force shellcheck --shell=bash in CI lint workflow Caught by actually running the workflow: ludeeus/action-shellcheck auto-detects shell from each script's shebang, and ShellCheck flatly refuses zsh scripts (SC1071) - it only supports sh/bash/dash/ksh. My local verification passed because I was manually passing --shell=bash without realizing the CI config itself didn't. Since the one zsh script (oh-my-zsh install) is otherwise plain POSIX-ish shell, checking it in bash mode is fine - verified locally before this commit. --- .github/workflows/lint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d05dc22..539f379 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,3 +22,4 @@ jobs: uses: ludeeus/action-shellcheck@master with: scandir: /tmp/lint + shellcheck_options: --shell=bash From 9df2d13e3edd664e74b72d95ccf6e91b99e9b41f Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Thu, 30 Jul 2026 20:18:10 -0300 Subject: [PATCH 08/15] Fix lint workflow: force bash shebang on lint copies instead of an unsupported action input ludeeus/action-shellcheck has no option to force --shell (confirmed by the action itself rejecting the shellcheck_options input I tried: "Unexpected input(s) 'shellcheck_options', valid inputs are [additional_files, ignore, ignore_paths, ignore_names, severity, check_together, scandir, disable_matcher, format, version]"). It auto-detects shell from each file's shebang instead, and refuses zsh scripts outright (SC1071). Since these are lint-only copies anyway (the real .tmpl files keep their real shebangs), just replace line 1 with `#!/bin/bash` unconditionally when generating them - simpler and more portable than trying to sed-replace only the zsh one (my first attempt at that broke on this machine's BSD sed and stripped every shebang). --- .github/workflows/lint.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 539f379..39c5430 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,11 +15,15 @@ jobs: mkdir -p /tmp/lint for f in .chezmoiscripts/*.tmpl; do base=$(basename "$f" .tmpl) - sed -E 's/\{\{.*\}\}//g' "$f" > "/tmp/lint/$base" + # Force a bash shebang for linting purposes regardless of the + # script's real shebang - ShellCheck refuses zsh scripts + # outright (SC1071), and this action has no option to force + # --shell, so the shebang line itself is what it auto-detects + # from. + { echo '#!/bin/bash'; tail -n +2 "$f" | sed -E 's/\{\{.*\}\}//g'; } > "/tmp/lint/$base" done - name: ShellCheck uses: ludeeus/action-shellcheck@master with: scandir: /tmp/lint - shellcheck_options: --shell=bash From 3b151e636955c3b114c6ecc1eef95a2146bbedaa Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Fri, 31 Jul 2026 15:53:45 -0300 Subject: [PATCH 09/15] Remove dotfiles-confidential references from README --- README.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/README.md b/README.md index 6001f2f..ffdba99 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,8 @@ Managed with [chezmoi](https://www.chezmoi.io). Covers Homebrew packages, shell config, macOS defaults, Dock, and editor extensions (VS Code + Cursor). -This is a two-repo setup. This repo covers everything public. A second, private repo — `dotfiles-confidential` — covers 1Password, SSH, and work-specific tools, and is run separately (see below). - ## Installation -### 1. This repo - ```bash sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply ffrizzo/dotfiles ``` @@ -18,17 +14,6 @@ A couple of things `chezmoi apply` can't do for you, run once afterward: - `rustup default stable` — finishes the Rust toolchain setup. - `mise install` — installs the pinned runtime versions (e.g. Terraform) that `mise` manages. -### 2. dotfiles-confidential - -```bash -git clone git@github.com:ffrizzo/dotfiles-confidential.git -cd dotfiles-confidential -chmod +x *.sh -sh setup.sh -cd .. -rm -rf dotfiles-confidential -``` - ## Day-to-day usage - `chezmoi edit ~/.zshrc` — edit a managed file (opens the source file, e.g. `dot_zshrc`). From 12ba2b000fdd0d49ea6fd58ffbdf4d2ef09902d6 Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Fri, 31 Jul 2026 15:58:27 -0300 Subject: [PATCH 10/15] Remove Rancher Desktop PATH block from dot_zshrc Rancher Desktop manages this block itself (injects it on first launch when shell integration is enabled) - tracking it here just meant it'd get fought over between the app and chezmoi apply on every re-run. --- dot_zshrc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dot_zshrc b/dot_zshrc index b6c7f47..c7dacc6 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -69,7 +69,3 @@ source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zs export GPG_TTY=$(tty) eval "$(mise activate zsh)" - -### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT) -export PATH="/Users/ffrizzo/.rd/bin:$PATH" -### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT) From d32b1a446d076e6ac1fbc548d0678a463cc0345e Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Fri, 31 Jul 2026 16:24:11 -0300 Subject: [PATCH 11/15] Replace oh-my-zsh with zinit (turbo mode) for faster shell startup oh-my-zsh's synchronous plugin loading was the actual source of shell startup lag. zinit's turbo mode (wait/lucid ice) defers plugin loading until just after the first prompt renders, typically cutting startup from ~200ms to ~40ms. - Every current oh-my-zsh plugin gets a 1:1 OMZP:: snippet equivalent - no functionality dropped, just deferred loading. - zsh-syntax-highlighting -> zdharma-continuum/fast-syntax-highlighting: the original doesn't tolerate turbo-mode's async loading (autosuggestions can wrap ZLE before it does, silently breaking highlighting with no error) - this is the documented, actively-maintained fork built for exactly this ordering problem. Loaded before autosuggestions with atload"!_zsh_autosuggest_start" to force synchronous init order. - zsh-autosuggestions and zsh-completions move from brew-installed to zinit-managed too, since that's what makes controlling load order possible in the first place - removed from Brewfile. - No theme added - Warp's own prompt already provides the visual look, matching current behavior (no ZSH_THEME was set before this either). - run_once_after_20-oh-my-zsh.sh.tmpl -> run_once_after_20-zinit.sh.tmpl, same run_once + directory-existence-guard pattern, just cloning zinit instead of oh-my-zsh. - Added a zsh startup verification step to the smoke test: oh-my-zsh silently warns on an unknown plugin name, but zinit's OMZP:: snippet fetch hard-errors (404) on one, so this is what actually catches a bad plugin-name mapping in CI before it reaches a real machine. --- .../run_once_after_20-oh-my-zsh.sh.tmpl | 13 --- .../run_once_after_20-zinit.sh.tmpl | 13 +++ .github/workflows/smoke-test.yml | 9 ++ Brewfile | 3 - README.md | 2 +- dot_zshrc | 109 ++++++++---------- 6 files changed, 72 insertions(+), 77 deletions(-) delete mode 100755 .chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl create mode 100755 .chezmoiscripts/run_once_after_20-zinit.sh.tmpl diff --git a/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl b/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl deleted file mode 100755 index a73de2c..0000000 --- a/.chezmoiscripts/run_once_after_20-oh-my-zsh.sh.tmpl +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/zsh -{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} -set -euo pipefail - -if [ -d "$HOME/.oh-my-zsh" ]; then - exit 0 -fi - -echo "Installing oh-my-zsh..." -sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended - -autoload -U compaudit -compaudit | xargs chmod g-w,o-w 2>/dev/null || true diff --git a/.chezmoiscripts/run_once_after_20-zinit.sh.tmpl b/.chezmoiscripts/run_once_after_20-zinit.sh.tmpl new file mode 100755 index 0000000..dad4a30 --- /dev/null +++ b/.chezmoiscripts/run_once_after_20-zinit.sh.tmpl @@ -0,0 +1,13 @@ +#!/bin/bash +{{ if ne .chezmoi.os "darwin" }}exit 0{{ end }} +set -euo pipefail + +ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" + +if [ -d "$ZINIT_HOME/.git" ]; then + exit 0 +fi + +echo "Installing zinit..." +mkdir -p "$(dirname "$ZINIT_HOME")" +git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME" diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 66a2308..6fed0d5 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -22,3 +22,12 @@ jobs: - name: chezmoi apply run: chezmoi apply --source="$GITHUB_WORKSPACE" --force + + - name: Verify zsh startup (zinit plugin loading) + run: | + output=$(zsh -ic 'exit' 2>&1) || true + echo "$output" + if echo "$output" | grep -qiE "fatal:|error|not found|404"; then + echo "zsh startup produced errors - likely a bad zinit snippet/plugin name" + exit 1 + fi diff --git a/Brewfile b/Brewfile index 073f0a8..eaf3d6c 100644 --- a/Brewfile +++ b/Brewfile @@ -58,9 +58,6 @@ brew "xh" brew "yamllint" brew "yq" brew "zoxide" -brew "zsh-autosuggestions" -brew "zsh-completions" -brew "zsh-syntax-highlighting" brew "go" brew "go@1.21" diff --git a/README.md b/README.md index ffdba99..4b9471f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Managed with [chezmoi](https://www.chezmoi.io). Covers Homebrew packages, shell sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply ffrizzo/dotfiles ``` -This installs chezmoi, clones this repo, and applies everything: Xcode CLI tools, Homebrew plus every package in `Brewfile`, oh-my-zsh, macOS system/user defaults, fonts, browser extension stubs, Dock layout, and VS Code/Cursor extensions. See `.chezmoiscripts/` for exactly what runs and in what order. +This installs chezmoi, clones this repo, and applies everything: Xcode CLI tools, Homebrew plus every package in `Brewfile`, zinit (zsh plugin manager), macOS system/user defaults, fonts, browser extension stubs, Dock layout, and VS Code/Cursor extensions. See `.chezmoiscripts/` for exactly what runs and in what order. A couple of things `chezmoi apply` can't do for you, run once afterward: - `rustup default stable` — finishes the Rust toolchain setup. diff --git a/dot_zshrc b/dot_zshrc index c7dacc6..306462a 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -1,71 +1,60 @@ # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH -# Path to your oh-my-zsh installation. -export ZSH="$HOME/.oh-my-zsh" - -# Set name of the theme to load --- if set to "random", it will -# load a random theme each time oh-my-zsh is loaded, in which case, -# to know which specific one was loaded, run: echo $RANDOM_THEME -# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes -# ZSH_THEME="agnoster" - ZSH_DOTENV_PROMPT=Always -# Which plugins would you like to load? -# Standard plugins can be found in ~/.oh-my-zsh/plugins/* -# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ -# Example format: plugins=(rails git textmate ruby lighthouse) -# Add wisely, as too many plugins slow down shell startup. -plugins=( - aliases - ansible - aws - branch - brew - cp - docker - docker-compose - dotenv - gcloud - gem - git - git-extras - git-flow - golang - helm - history - iterm2 - jira - kops - kubectl - minikube - node - npm - macos - pip - pipenv - postgres - pyenv - python - redis-cli - rust - terraform - vagrant - virtualenv - vscode - yarn - - # zsh-autosuggestions - # zsh-syntax-highlighting -) - -source $ZSH/oh-my-zsh.sh +ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" +source "${ZINIT_HOME}/zinit.zsh" + +zinit wait lucid for \ + atinit"zicompinit; zicdreplay" \ + zdharma-continuum/fast-syntax-highlighting \ + atload"!_zsh_autosuggest_start" \ + zsh-users/zsh-autosuggestions \ + blockf atpull'zinit creinstall -q .' \ + zsh-users/zsh-completions + +zinit wait lucid for \ + OMZP::aliases \ + OMZP::ansible \ + OMZP::aws \ + OMZP::branch \ + OMZP::brew \ + OMZP::cp \ + OMZP::docker \ + OMZP::docker-compose \ + OMZP::dotenv \ + OMZP::gcloud \ + OMZP::gem \ + OMZP::git \ + OMZP::git-extras \ + OMZP::git-flow \ + OMZP::golang \ + OMZP::helm \ + OMZP::history \ + OMZP::iterm2 \ + OMZP::jira \ + OMZP::kops \ + OMZP::kubectl \ + OMZP::minikube \ + OMZP::node \ + OMZP::npm \ + OMZP::macos \ + OMZP::pip \ + OMZP::pipenv \ + OMZP::postgres \ + OMZP::pyenv \ + OMZP::python \ + OMZP::redis-cli \ + OMZP::rust \ + OMZP::terraform \ + OMZP::vagrant \ + OMZP::virtualenv \ + OMZP::vscode \ + OMZP::yarn autoload -U +X bashcompinit && bashcompinit -source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh -source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh export GPG_TTY=$(tty) eval "$(mise activate zsh)" From 11e2e39a141558af568e944c7b98b55c6104a57f Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Fri, 31 Jul 2026 16:26:10 -0300 Subject: [PATCH 12/15] Fix zsh startup verification: give turbo-mode plugins time to finish The previous check (zsh -ic 'exit') returned before most of the ~39 zinit snippets had a chance to load - the captured log only showed the first 4 (the trio + OMZP::aliases) before the step finished, meaning it wasn't actually validating the other 35 plugin names. Added a real wait and an explicit check that the last plugin in the list (OMZP::yarn) actually loaded, so a silent early-exit doesn't look like a clean pass. --- .github/workflows/smoke-test.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 6fed0d5..eb116ef 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -25,9 +25,17 @@ jobs: - name: Verify zsh startup (zinit plugin loading) run: | - output=$(zsh -ic 'exit' 2>&1) || true + # Turbo mode defers plugin loading until after the first prompt via a + # precmd hook - `-c exit` can return before all ~39 snippets finish + # fetching, so give it real time and confirm the *last* plugin in the + # list actually loaded, not just however many happened to finish first. + output=$(zsh -ic 'sleep 20; exit' 2>&1) || true echo "$output" if echo "$output" | grep -qiE "fatal:|error|not found|404"; then echo "zsh startup produced errors - likely a bad zinit snippet/plugin name" exit 1 fi + if ! echo "$output" | grep -q "OMZP::yarn"; then + echo "zsh startup never reached the last plugin in the list (OMZP::yarn) - turbo-mode loading didn't complete in time" + exit 1 + fi From ce67a8fdb233c3d59934037a8f9d3815c0c7a839 Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Fri, 31 Jul 2026 16:28:21 -0300 Subject: [PATCH 13/15] Bump zsh startup verification wait to 120s 20s wasn't close to enough - the previous CI run showed the 2nd zinit snippet hadn't even started downloading after 25s. Fetching ~39 individual files from GitHub with zero parallelism on a cold cache is genuinely slow; this is a one-time cost on first shell start, not representative of the actual startup-time improvement this migration is for. --- .github/workflows/smoke-test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index eb116ef..5481599 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -29,7 +29,12 @@ jobs: # precmd hook - `-c exit` can return before all ~39 snippets finish # fetching, so give it real time and confirm the *last* plugin in the # list actually loaded, not just however many happened to finish first. - output=$(zsh -ic 'sleep 20; exit' 2>&1) || true + # This is a cold-cache, no-parallelism, one-file-per-snippet fetch of + # ~39 files from GitHub on a fresh runner - 20s wasn't close to enough + # (the 2nd snippet hadn't even started after 25s), so this is generous + # on purpose. This cost is one-time (first shell start only); it's not + # representative of the actual startup-time win this migration is for. + output=$(zsh -ic 'sleep 120; exit' 2>&1) || true echo "$output" if echo "$output" | grep -qiE "fatal:|error|not found|404"; then echo "zsh startup produced errors - likely a bad zinit snippet/plugin name" From dd03e6df15b4c78e4daae8a0c28ded94f8d7fae4 Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Fri, 31 Jul 2026 16:40:44 -0300 Subject: [PATCH 14/15] Fix redis-cli (completion-only, no plugin.zsh) and rework CI verification Direct curl validation of every OMZP:: plugin URL (bypassing zinit/turbo mode entirely) found the real bug the interactive-shell approach never reached: redis-cli isn't a real oh-my-zsh *plugin* (no .plugin.zsh file exists) - it only ships a completion file (_redis-cli). Fixed in dot_zshrc: moved it out of the plain snippet list into its own as"completion" load pointing at OMZP::redis-cli/_redis-cli, same pattern oh-my-zsh's own docs use for docker's _docker completion. Also replaced the interactive-shell-based CI check entirely. Across two separate runs (20s then 120s sleep), zsh -ic 'sleep N; exit' consistently stalled right after the very first deferred plugin regardless of how long it waited - turbo mode's queue advancement appears to depend on genuine interactive idle-time scheduling that a -c command context doesn't produce, so no amount of sleeping was going to fix it. Replaced with two steps: a short (5s) check that zsh starts without hard errors, and a direct curl check of every OMZP:: plugin URL - which is both more reliable and actually found the real bug on the first local run. --- .github/workflows/smoke-test.yml | 47 +++++++++++++++++++++----------- dot_zshrc | 5 ++-- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 5481599..37a2804 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -23,24 +23,39 @@ jobs: - name: chezmoi apply run: chezmoi apply --source="$GITHUB_WORKSPACE" --force - - name: Verify zsh startup (zinit plugin loading) + - name: Verify zsh starts without hard errors run: | - # Turbo mode defers plugin loading until after the first prompt via a - # precmd hook - `-c exit` can return before all ~39 snippets finish - # fetching, so give it real time and confirm the *last* plugin in the - # list actually loaded, not just however many happened to finish first. - # This is a cold-cache, no-parallelism, one-file-per-snippet fetch of - # ~39 files from GitHub on a fresh runner - 20s wasn't close to enough - # (the 2nd snippet hadn't even started after 25s), so this is generous - # on purpose. This cost is one-time (first shell start only); it's not - # representative of the actual startup-time win this migration is for. - output=$(zsh -ic 'sleep 120; exit' 2>&1) || true + # Only checks that sourcing dot_zshrc itself doesn't error - turbo-mode + # plugin loading is deferred and its completion depends on genuine + # interactive idle-time scheduling that a `-c` command context doesn't + # reliably produce (confirmed: it consistently stalls after the very + # first deferred plugin regardless of how long you wait), so it's not + # something this can reliably wait out. The step below validates plugin + # names directly instead. + output=$(zsh -ic 'sleep 5; exit' 2>&1) || true echo "$output" - if echo "$output" | grep -qiE "fatal:|error|not found|404"; then - echo "zsh startup produced errors - likely a bad zinit snippet/plugin name" + if echo "$output" | grep -qiE "fatal:|command not found|parse error"; then + echo "zsh startup produced hard errors" exit 1 fi - if ! echo "$output" | grep -q "OMZP::yarn"; then - echo "zsh startup never reached the last plugin in the list (OMZP::yarn) - turbo-mode loading didn't complete in time" - exit 1 + + - name: "Verify OMZP:: plugin names resolve" + run: | + plugins=(aliases ansible aws branch brew cp docker docker-compose dotenv gcloud gem git git-extras git-flow golang helm history iterm2 jira kops kubectl minikube node npm macos pip pipenv postgres pyenv python rust terraform vagrant virtualenv vscode yarn) + all_ok=0 + for p in "${plugins[@]}"; do + url="https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/$p/$p.plugin.zsh" + code=$(curl -s -o /dev/null -w "%{http_code}" "$url") + if [ "$code" != "200" ]; then + echo "Invalid OMZP:: plugin name: $p (HTTP $code for $url)" + all_ok=1 + fi + done + # redis-cli is completion-only (no .plugin.zsh, just _redis-cli) + redis_url="https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/redis-cli/_redis-cli" + redis_code=$(curl -s -o /dev/null -w "%{http_code}" "$redis_url") + if [ "$redis_code" != "200" ]; then + echo "Invalid OMZP:: completion path: redis-cli/_redis-cli (HTTP $redis_code)" + all_ok=1 fi + exit "$all_ok" diff --git a/dot_zshrc b/dot_zshrc index 306462a..5cc2517 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -45,13 +45,14 @@ zinit wait lucid for \ OMZP::postgres \ OMZP::pyenv \ OMZP::python \ - OMZP::redis-cli \ OMZP::rust \ OMZP::terraform \ OMZP::vagrant \ OMZP::virtualenv \ OMZP::vscode \ - OMZP::yarn + OMZP::yarn \ + as"completion" \ + OMZP::redis-cli/_redis-cli autoload -U +X bashcompinit && bashcompinit From 43cd243a4e24c2654419a6d9ac612c4b5a6df8ca Mon Sep 17 00:00:00 2001 From: Fabiano Frizzo Date: Fri, 31 Jul 2026 16:47:43 -0300 Subject: [PATCH 15/15] Track ~/.warp/settings.toml - the real Warp config The already-tracked Library/Preferences/dev.warp.Warp-Stable.plist doesn't hold the meaningful stuff - Warp's actual theme, font, tab behavior, and keybinding settings live in ~/.warp/settings.toml instead (a plain, non-sensitive TOML file), which wasn't tracked anywhere. This is what actually restores the look on a fresh install. --- README.md | 2 +- dot_warp/settings.toml | 135 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 dot_warp/settings.toml diff --git a/README.md b/README.md index 4b9471f..9855a06 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ A couple of things `chezmoi apply` can't do for you, run once afterward: - `Brewfile` — Homebrew formulae, casks, and VS Code extensions, installed via `brew bundle`. - `.chezmoiscripts/` — install/setup scripts, run in order by `chezmoi apply` (numeric prefix = order; `run_once_` = once ever per machine; `run_onchange_` = re-runs when its own rendered content changes, e.g. the Brewfile install script re-runs whenever `Brewfile` changes). -- `dot_*` — dotfiles, applied to `$HOME` (e.g. `dot_zshrc` → `~/.zshrc`). +- `dot_*` — dotfiles, applied to `$HOME` (e.g. `dot_zshrc` → `~/.zshrc`; `dot_warp/settings.toml` → `~/.warp/settings.toml` — Warp's actual theme/font/tab config, not to be confused with `Library/Preferences/dev.warp.Warp-Stable.plist` below, which doesn't hold much of substance). - `Library/` — app preferences/settings applied under `~/Library` (VS Code, iTerm2, Warp). - `fonts/` — bundled fonts, installed by `.chezmoiscripts/run_once_after_23-fonts.sh.tmpl`. diff --git a/dot_warp/settings.toml b/dot_warp/settings.toml new file mode 100644 index 0000000..0d823d1 --- /dev/null +++ b/dot_warp/settings.toml @@ -0,0 +1,135 @@ +[appearance] +spacing = "compact" + +[appearance.full_screen_apps] +alt_screen_padding = { custom = { uniform_padding = 0.0 } } + +[appearance.text] +font_size = 14.0 +notebook_font_size = 14.0 +line_height_ratio = 1.2000000476837158 + +[appearance.window] +override_opacity = 100 +override_blur = 1 + +[appearance.tabs] +workspace_decoration_visibility = "always_show" +preserve_active_tab_color = false +show_indicators_button = true + +[appearance.themes] +theme = "cyber_wave" + +[appearance.vertical_tabs] +enabled = false +show_panel_in_restored_windows = false + +[appearance.blocks] +show_jump_to_bottom_of_block_button = true +show_block_dividers = true + +[terminal] +mouse_reporting_enabled = false + +[terminal.input] +completions_open_while_typing = true +input_box_type_setting = "universal" +honor_ps1 = false + +[global_hotkey] + +[global_hotkey.dedicated_window] +enabled = true + +[global_hotkey.dedicated_window.settings] +active_pin_position = "bottom" +hide_window_when_unfocused = true +keybinding = "shift-cmd-T" +pin_screen = "primary" + +[global_hotkey.dedicated_window.settings.pin_position_to_size_percentages] +bottom = { height = 30, width = 100 } +left = { height = 100, width = 40 } +right = { height = 100, width = 40 } +top = { height = 30, width = 100 } + +[global_hotkey.toggle_all_windows] +enabled = false + +[general] +snackbar_enabled = false + +[account] +is_settings_sync_enabled = true + +[privacy] +telemetry_enabled = false +crash_reporting_enabled = true +custom_secret_regex_list = [ + { name = "IPv4 Address", pattern = '\b((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}\b' }, + { + name = "IPv6 Address", + pattern = '\b((([0-9A-Fa-f]{1,4}:){1,6}:)|(([0-9A-Fa-f]{1,4}:){7}))([0-9A-Fa-f]{1,4})\b', + }, + { name = "Slack App Token", pattern = '\bxapp-[0-9]+-[A-Za-z0-9_]+-[0-9]+-[a-f0-9]+\b' }, + { name = "Phone Number", pattern = '\b(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}\b' }, + { + name = "AWS Access ID", + pattern = '\b(AKIA|A3T|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{12,}\b', + }, + { + name = "MAC Address", + pattern = '\b((([a-zA-z0-9]{2}[-:]){5}([a-zA-z0-9]{2}))|(([a-zA-z0-9]{2}:){5}([a-zA-z0-9]{2})))\b', + }, + { name = "Google API Key", pattern = '\bAIza[0-9A-Za-z-_]{35}\b' }, + { name = "Google OAuth ID", pattern = '\b[0-9]+-[0-9A-Za-z_]{32}\.apps\.googleusercontent\.com\b' }, + { name = "GitHub Classic Personal Access Token", pattern = '\bghp_[A-Za-z0-9_]{36}\b' }, + { name = "GitHub Fine-Grained Personal Access Token", pattern = '\bgithub_pat_[A-Za-z0-9_]{82}\b' }, + { name = "GitHub OAuth Access Token", pattern = '\bgho_[A-Za-z0-9_]{36}\b' }, + { name = "GitHub User-to-Server Token", pattern = '\bghu_[A-Za-z0-9_]{36}\b' }, + { name = "GitHub Server-to-Server Token", pattern = '\bghs_[A-Za-z0-9_]{36}\b' }, + { name = "Stripe Key", pattern = '\b(?:r|s)k_(test|live)_[0-9a-zA-Z]{24}\b' }, + { name = "Firebase Auth Domain", pattern = '\b([a-z0-9-]){1,30}(\.firebaseapp\.com)\b' }, + { name = "JWT", pattern = '\b(ey[a-zA-z0-9_\-=]{10,}\.){2}[a-zA-z0-9_\-=]{10,}\b' }, + { name = "OpenAI API Key", pattern = '\bsk-[a-zA-Z0-9]{48}\b' }, + { name = "Anthropic API Key", pattern = '\bsk-ant-api\d{0,2}-[a-zA-Z0-9\-]{80,120}\b' }, + { name = "Generic SK API Key", pattern = '\bsk-[a-zA-Z0-9\-]{10,100}\b' }, + { name = "Fireworks API Key", pattern = '\bfw_[a-zA-Z0-9]{24}\b' }, +] + +[agents] +cloud_conversation_storage_enabled = true + +[agents.profiles] +agent_mode_coding_permissions = "always_allow_reading" + +[agents.warp_agent] + +[agents.warp_agent.input] +nld_in_terminal_enabled = true + +[code] + +[code.editor] +open_file_editor = { external_editor = "vs_code" } + +[notifications] +toast_duration_secs = 8 + +[notifications.preferences] +is_agent_task_completed_enabled = true +is_long_running_enabled = true +is_needs_attention_enabled = true +is_password_prompt_enabled = true +long_running_threshold = 30 +mode = "dismissed" +play_notification_sound = true + +[accessibility] +accessibility_verbosity = "verbose" + +[warpify] + +[warpify.subshells] +subshell_commands_denylist = ["docker run -it --rm docker.repo.frg.tech/ruby:2.7 bash", "docker run -it --rm mono:3.12.1 bash"]