To update the computer name that appears in the terminal:
System Preferences > Sharing > Computer Name
To update the terminal prompt:
code .zshrc
Terminal ZSH
# PROMPT='%n@%m %. %% '
PROMPT='%F{035}%~%f %F{033}$%f '
brew install romkatv/powerlevel10k/powerlevel10k
echo "source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
code ~/.zshrc
To uninstall
uninstall_oh_my_zsh
ZSH_THEME="refined"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
code ~/.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
- Font: JetBrains Mono Regular Regular 14
- Window Size: 140 x 35
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
To install all applications from the Brewfile:
brew bundle
Popular commands
code --list-extensions
code --install-extension ms-vscode.cpptools
code --uninstall-extension ms-vscode.csharp
code --install-extension a --force (to update)
See the extension ID on the extension details page under the Marketplace Info.
References