Skip to content

Instantly share code, notes, and snippets.

@nivethan-me
Last active July 11, 2023 09:55
Show Gist options
  • Save nivethan-me/e46f1c7bb9c30d4a2ee5813c8148eed6 to your computer and use it in GitHub Desktop.
Save nivethan-me/e46f1c7bb9c30d4a2ee5813c8148eed6 to your computer and use it in GitHub Desktop.
Setup a simple and elegant terminal on macOS

Setup a simple & elegant terminal on macOS

Screenshot 2023-07-11 at 3 14 40 PM

  1. (optional) install Homebrew on you mac

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  2. Install Alacritty terminal emulator

    brew install --cask alacritty
    
  3. Install a Nerd Font (for example try this FiraCode Nerd Font)

  4. Install starship prompt

    1. To install via brew

      brew install starship
      
    2. Add the following to the end of ~/.zshrc (create one if you don't have in your home directory)

      eval "$(starship init zsh)"
      
  5. Add Alacritty config file to customize look of Alacritty

    mkdir -p .config/alacritty/
    cd .config/alacritty/
    touch alacritty.yml
    
  6. Add the following inside the alacritty.yml file

    
    window:
      opacity: 0.85
      padding:
        x: 18
        y: 16
      dynamic_padding: false
      decorations: buttonless
    
    font:
      normal:
        family: "FiraCode Nerd Font Mono"
        style: Regular
      size: 14.0
    
    
  7. Restart Alacritty to see all the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment