| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This directory contains machine-specific configurations that are loaded based on the hostname or a profile name.
Create a profile file named after your machine's hostname or a custom name:
Set the DOTFILES_PROFILE environment variable (optional):
export DOTFILES_PROFILE="work"If DOTFILES_PROFILE is not set, the system will try to load a profile matching your hostname.
profiles/*.zsh are sourced from .zprofile, which runs before Prezto and therefore before compinit. Anything that needs compdef has to go in a .post.zsh file instead; runcom/.zshrc sources those at the very end, after Prezto:
Put here anything that registers completions or key bindings:
# profiles/local.post.zsh
# gcloud completion. Sourced from .zprofile this runs a second full compinit,
# because the guard inside completion.zsh.inc only short-circuits once compdef
# exists.
source "$HOME/google-cloud-sdk/completion.zsh.inc"
# Any other `<tool> init zsh` or `<tool> completion zsh` output.PATH additions do not belong here. .zprofile normalises and deduplicates PATH right after .profile returns, so an entry added from a .post.zsh file escapes both the /../ cleanup and typeset -U. Keep those in the plain *.zsh profile, which runs before that step — gcloud's path.zsh.inc stays in local.zsh, and only completion.zsh.inc moves.
# profiles/work.zsh
# Work-specific Git configuration
export GIT_AUTHOR_EMAIL="you@company.com"
export GIT_COMMITTER_EMAIL="you@company.com"
# Work-specific aliases
alias vpn="open /Applications/CompanyVPN.app"
alias jira="open https://company.atlassian.net"
# Work proxy settings
# export http_proxy="http://proxy.company.com:8080"
# Additional PATH entries
prepend-path "$HOME/work/scripts"
# Load work-specific Brewfile
# export HOMEBREW_BUNDLE_FILE="$DOTFILES_DIR/profiles/Brewfile.work"| Back | FazBrowse Home | New Git URL |