Management of configuration files for my workstations.
Change the default login shell to Zsh on Mac:
- Open System Preferences
- Go to Users & Groups
- Ensure that making changes is unlocked
- Right click the current user and select Advanced Options...
- Select Login Shell:
/bin/zsh
- Confirm with OK
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Dotfiles:
cd ${HOME}
git clone --recurse-submodules https://github.com/marcrohlfs/dotfiles.git .dotfiles
cd .dotfiles
./install
To provide custom (and secret) settings, create a file named .zsh.env
in your home directory.
Here are some settings used by this setup:
# Configure the .gitconfig file based on the oh-my-zsh-custom/plugins/git/gitconfig.tmpl.
export GIT_USER_NAME='Your Name'
export [email protected]
export GIT_USER_SIGNINGKEY=[THE_SIGNINGKEY_IF_COMMIT_SIGNING_IS_WANTED_OR_OMIT]
# The protected branches that won't appear or be deleted when using the aliases 'gbrmg' or 'gbrmgd'.
export GIT_PROTECTED_BRANCH_PATTERNS='main|master|maintenance-.*'
# Setting the JIRA_URL loads the Oh My Zsh's 'jira' plugin.
export JIRA_URL=[THE_JIRA_URL]