Install fzf via homebrew: brew install fzf then $(brew -prefix)/opt/fzf/install Sounds boring, but it is wonderful! The homepage has usage and links to lots of examples. It will sort through text and display lines that match what you type. The utility fzf is an incredibly useful search tool. Then check out the git repo for ways to configure and theme the output from bat. Install bat via homebrew again: brew install bat. It is git and diff aware, so running bat on a file in a git repo will highlight any changes from the committed code. This is a syntax colouring replacement/supplement for cat. Install ripgrep via homebrew: brew install ripgrep. Install fd via homebrew: brew install fd Install ripgrep The homepage has lots of useful examples. The tool fd is a faster, simpler, replacement for find. ✔ Installed! zplug/zplug -> hook-build: success ✔ Installed! zsh-users/zsh-syntax-highlighting I then ran zplug install which should display: Start to install 5 plugins in parallel Zplug 'zplug/zplug ', hook-build: 'zplug -self-manage ' # Then, source plugins and add commands to $PATHĪfter opening a new shell, you may see a complaint from the powerlevel10k instant prompt. Zplug "supercrabtree/k " # Keep zplug itself up to date Zplug "zsh-users/zsh-completions " # display directories # in git with file status symbols, file age and size colours (not colour-blind friendly) Zplug "urbainvaes/fzf-marks " # extra completions (optional) Zplug "zsh-users/zsh-syntax-highlighting ", defer:2 Try it out and see # if you are comfortable with the speed # Syntax highlighting needs a faster computer, # so this next line is optional. # Next-gen(!) ZSH plugin manager source $HOME/.zplug/init.zsh It's hugely flexible and can manage installing code from gists, local files, github repos, and more! Zplug can manage various add-ons for zsh. Have fun exploring them! (Optional) Install zplug Powerlevel10k has a massive amount of customization options. instant prompt mode: verbose instant prompt (1).enable transient prompt: no transient prompt (n).prompt style: classic prompt (option 2).install meslo nerd font (y) (I actually have source code pro nerd font installed and use that, but meslo is a great choice to start with).To get that style prompt, I chose the following options: (please ignore the unix epoch display, that's a custom function I added) It will guide you through setting up your prompt. Go to the omz install instructions for p10k and follow them. It supports displaying the status of many tools like nvm, virtualenv, terraform, or the AWS command line. Powerlevel10k is a fast command line prompt. # Marky Mark and the Function Bunch # depends on 'unalias gcd' and 'brew install git' function gcd Read this StackOverflow answer to understand the order in which shell files are read and used. Update it with omz update and read the docs on all the useful plugins it provides. Go to and use the command line to install oh-my-zsh. Oh-my-zsh (omz for short) is a framework for themes, plugins, and more for zsh. Go to and use the command line to install it. It requires the Xcode command line tools: xcode-select -install or ) or Xcode. Homebrew is a package manager, much like apt, dnf, or pacman. If your Mac has been upgraded from Mojave (10.14) or earlier, your default shell may still be bash. Get the stable release from (Optional) Change your default shell CMD + t opens a new tab in iTerm, and then you can just close the old tab with the middle mouse button or with CTRL + d in the terminal you want to close. Welcome and good luck!Īfter installing each tool, you will need to reopen your terminal. If you're beginning your journey, you'll soon find out how incredibly powerful the command line is. If you've been given this guide and already feel lost, don't worry, here are some links to get you started! There's a lot of great, free tutorials out there to get you comfortable working with files in the command line. To use this guide you must already be familiar with basic shell concepts such as aliases and variables, as well as editing files on the command line. It is not going to be an exhaustive step-by-step and won't hand-hold you. This document is intended to provide a quick overview of getting your new MacOS shell environment configured and useful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |