Link Search Menu Expand Document

User

Table of contents

oh-my-zsh installation

I perfer to use iterm.app , so install iterm with brew.

brew install --cask iterm2
  • Install various apps
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    #oh-my-zsh installation
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
    #theme: powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
    #zsh-auto-suggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
    #zsh-syntax-highlighting
  • Run sudo vim ~/.zshrc to edit with below
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
    #edit the default theme to powerlevel10k
ENABLE_CORRECTION="true"
    #take the comment # off
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
    #allowing the plugins
  • Run source ~/.zshrc, then open iterm.app, follow the instruction as shown on screen. Ensure to install new font MesloLGS.

  • Use p10k configure for reconfiguration.
  • ~/.zshrc.pre-oh-my-zsh is the file contains old zshrc content.

vscode font

  • Open: Users > name > library > Application Support > Code > User > settings.json, add below line to the json file
"terminal.integrated.fontFamily": "MesloLGS NF"

zsh-syntax-highlighting tweak

  • By default, the directory path and file comes with underline. You can tweak it by running below 2 commands from the terminal.
  • More tweak here
typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[path]='fg=cyan'
    #remove underline and change color to cyan
ZSH_HIGHLIGHT_STYLES[path]=none  
ZSH_HIGHLIGHT_STYLES[path_prefix]=none