### Install and Configure Starship Prompt Source: https://context7.com/riverify/wezterm-autoconfig/llms.txt Installs the Starship prompt via Homebrew and defines the TOML configuration for custom symbols, git status, and language-specific version displays. ```bash brew install starship ``` ```toml add_newline = true continuation_prompt = "[▸▹ ](dimmed white)" [character] format = "$symbol " success_symbol = "[◎](bold italic bright-yellow)" error_symbol = "[○](italic purple)" [directory] home_symbol = "⌂" truncation_length = 2 style = "italic blue" [git_branch] format = " [$branch(:$remote_branch)]($style)" style = "italic bright-blue" [nodejs] format = " [node](italic) [◫ ($version)](bold bright-green)" detect_files = ["package-lock.json", "yarn.lock"] ``` -------------------------------- ### Install Homebrew for WezTerm Autoconfig Source: https://context7.com/riverify/wezterm-autoconfig/llms.txt Checks for Homebrew installation and offers to install it if missing, as it's a prerequisite for installing WezTerm, Starship, and Zsh plugins. The installation command uses curl to fetch the official Homebrew installer script. ```bash # If Homebrew is not detected: # Homebrew not detected, install it? (yes/no) # > yes /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` -------------------------------- ### Execute Main Configuration Script Source: https://context7.com/riverify/wezterm-autoconfig/llms.txt Demonstrates the execution flow of the main autoconfig script, which orchestrates the sequential setup of all terminal components. ```bash ./autoconfig.sh ``` -------------------------------- ### Configure Zsh Plugins and Environment Source: https://context7.com/riverify/wezterm-autoconfig/llms.txt Installs Zsh syntax highlighting and autosuggestions via Homebrew, and appends initialization scripts, aliases, and a greeting function to the .zshrc file. ```bash brew install zsh-syntax-highlighting brew install zsh-autosuggestions eval "$(starship init zsh)" source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh alias ll='ls -al' greet_user() { current_time=$(date +"%m/%d/%Y %H:%M:%S") echo "Welcome back, $USER" echo "Current time: $current_time" } greet_user ``` -------------------------------- ### Install and Configure WezTerm Source: https://context7.com/riverify/wezterm-autoconfig/llms.txt Installs WezTerm using Homebrew cask and generates a Lua configuration file (`wezterm.lua`) in `~/.config/wezterm/`. The configuration includes a dark purple theme, translucent background, JetBrains Mono font, and other visual and functional settings. ```bash # If WezTerm is not installed: brew install --cask wezterm ``` -------------------------------- ### Install WezTerm Autoconfig via curl Source: https://github.com/riverify/wezterm-autoconfig/blob/main/README.md Executes the remote configuration script directly using curl. This is the recommended method for a quick setup of the development environment. ```sh sh -c "$(curl -fsSL https://raw.githubusercontent.com/riverify/wezterm-autoconfig/main/autoconfig_curl.sh)" ``` -------------------------------- ### Install WezTerm Autoconfig via Git Source: https://github.com/riverify/wezterm-autoconfig/blob/main/README.md Clones the repository locally to allow for manual execution of the configuration script. Useful for users who want to inspect or modify the script before running. ```sh git clone https://github.com/riverify/wezterm-autoconfig.git cd wezterm-autoconfig chmod +x autoconfig.sh ./autoconfig.sh ``` -------------------------------- ### Configure Network Proxy for WezTerm Autoconfig Source: https://context7.com/riverify/wezterm-autoconfig/llms.txt Handles network proxy configuration for users in restricted environments, particularly useful for mainland China. The script can automatically detect and prompt for proxy settings or allow manual export of environment variables. ```bash # Manual proxy configuration before running: export http_proxy="http://127.0.0.1:7890" export https_proxy="http://127.0.0.1:7890" ./autoconfig.sh ``` -------------------------------- ### WezTerm Configuration File Source: https://context7.com/riverify/wezterm-autoconfig/llms.txt A sample Lua configuration file for WezTerm, defining appearance and behavior. It sets up automatic config reloading, tab bar visibility, window decorations, font, color scheme, cursor style, background blur, custom background color, and window padding. ```lua local wezterm = require("wezterm") config = wezterm.config_builder() config = { automatically_reload_config = true, enable_tab_bar = true, hide_tab_bar_if_only_one_tab = true, window_close_confirmation = "NeverPrompt", window_decorations = "TITLE | RESIZE", font = wezterm.font("JetBrains Mono", { weight = "Bold" }), font_size = 13, color_scheme = "Nord (Gogh)", default_cursor_style = 'BlinkingBlock', macos_window_background_blur = 25, background = { { source = { Color = "#301934" }, -- dark purple width = "100%", height = "100%", opacity = 0.85, }, }, window_padding = { left = 3, right = 3, top = 0, bottom = 0 }, initial_rows = 50, initial_cols = 100, } return config ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.