![]() You can install zsh-autosuggestions and zsh-syntax-highlighting to get similar features to Fig, but directly as Oh My Zsh plugins. Just download it from their website and follow the instructions during the installation. Install Fig (optional)įig adds futuristic and intelligent auto-complete to your terminal. Just follow the instructions on their Github, and it'll install the required fonts, update iTerm2 settings and ask you a couple questions to configure the theme as you like. Powerlevel10k is a complete and beautiful Zsh theme, that has a super-easy auto-installer. So I recommand you install it via their Github. It's true, but it's only part of the story: it also brings improvements to Zsh, like the ability to select an option in suggestions by pressing tab twice. You'll usually hear that Oh My Zsh is a plugin manager for Zsh. To install Homebrew, follow the (very simple) instructions on their website. ![]() It allows to install easily things from your terminal. Super stoked about speaking at #KubeCon EU in May □įrom Monitoring to Observability: Left Shift your SLOs with ChaosĬome and say hi, in person □ #o11ylove the left how to configure an iTerm HotKey - on the right the option to fix AZERTY keyboards Install Homebrew One step further to my KubeCon EU talk in May 2022 :-) You can find the full configuration in my dotfiles project.Ī clear terminal representation is helpful for workshops and live demos during talks, allowing participants to follow more easily. Also, when the command returned an error which is reflected with printing the exit code.Ĭommands can also take a while to execute (or to study the git diff output), which is represented with the 10s and 4s yellow text in the screenshot. If there are uncommitted changes, the prompt looks different. Command syntax highlighting (this is new for me too).Time (a good reminder that it's too late □).Typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION=$'' Typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=7 Typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=232 Second, uncomment the POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION variable and set its value to the GitLab FontAwesome icon in hex format $''. Typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( Fill it with the most important segments. # The list of segments shown on the left. p10k.zsh configuration file.įirst, uncomment the os_icon in the POWERLEVEL9K_LEFT_PROMPT_ELEMENTS variable: $ vim $HOME/.p10k.zsh Since I only use macOS, I decided to look for an alternative default icon: The GitLab Tanuki which I found available in the NerdFonts cheatsheet.Ĭopying the hex code, and reading about the correct syntax for setting the OS_ICON variable helped modify the. I liked the context separator line, and colorful blocks in the interface. I went with Light Rainbow theme to see how it goes. In case you closed it, run the following command: p10k configure Customizing my theme was a breeze, really. ![]() Powerlevel10k has an awesome wizard which walks you through the steps, and also shows different UI examples. The first run of Powerlevel10k also prompts with the configuration wizard described next. $ git clone -depth=1 $/themes/powerlevel10k The environment variable is automatically set after installing Oh-My-ZSH. Next, clone the theme into the $ZSH_CUSTOM/themes directory. Double-click them to install, and navigate into the iTerm2 preferences into Preferences > Profiles > Text > Font and search for MesloLGS NF in the dropdown. Powerlevel10kįollow the installation instructions and download the font files. I'm using a Brewfile to manage the installation. Install additional ZSH goodies with Homebrew for auto-completion and syntax highlighting: $ brew install zsh-completions zsh-syntax-highlighting If you haven't installed Oh-My-ZSH yet, follow the documentation and my dotfiles customizations and aliases. In this blog post, we'll walk through Oh-My-ZSH, Powerlevel10k, and its installation and configuration, including an icon override and more. Recently I came around Powerlevel10k and wanted to try it, mainly because it has an "instant prompt" feature - I had experienced slow loading times with pyenv and rbenv. I have been using the Spaceship prompt with Oh-My-ZSH for a while, but never really bothered with changing the configuration. Terminal integrations and themes help with a clear UX, CLI command details, and information on the current versions, name, and path, for example showing the Git branch or not-committed changes.
0 Comments
Leave a Reply. |