You can read more about POWERLEVEL9K prompts options here, and deeper customizations here: /tutorials/how-to-customize-your-command-prompt - net-24083 POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%" POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%f" Visual customisation of the second prompt line □ ✨ and to make it beautifull with the $ character add these other lines: Add a space in the first prompt Moreover to make the two lines prompt you have to add this : POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time) POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir rbenv vcs) Just add these lines to your ~/.zshrcconfiguration file : You can choose your prompt elements and make them as on the screenshots. Here you can remove the and unnecessary informations + put the command line on a second prompt line : Powerlevel9k offers a whole lot more, best is to follow the next steps or check out these user made configs. Then edit ~/.zshrc configuration file and set $ git clone ~/.oh-my-zsh/custom/themes/powerlevel9k The Powerlevel9k zsh theme adds many other features like a right promp with infos such as exit codes and timestamps. At any time you can compare it with Clovis. □In the next steps you’ll need to edit the ~/.zshrc configuration file which is run when the terminal starts. Oh my Zsh is a Zsh configuration framework, you can read more here: /robbyrussell/oh-my-zsh. Zsh is a shell that provides many features, like better files and folders navigation. ITerm2 → Preferences → Profiles → Text → Change Font (font size of 12pt is our personal preference) Open the downloaded font and press “Install Font” on your computer. Source Code Pro has better alignment for the glyphs powerline fonts ![]() Meslo (recommanded, ie the one in the screenshot). You’ll get this result at the end, keep calm and follow this doc The patched font is the font used by iTerm2 to display characters, and you’ll need a special one for special characters like arrows and git icons. Then again, Color presets → you-color-scheme-name ITerm → Preferences → Profiles → Colors → Color presets → Import … and download your desired preset’s file here Or scroll many opensource iTerm2 color schemes here You can use Clovis’ iTerm2 color scheme file □ (the one in the screenshot) If you don’t have installed homebrew (you should… )), download and install iTerm2 (it has better color fidelity than the built in Terminal, so your themes will look better). Obviously we didn’t want to spend hours with shell configuration and customization like many people do… That’s why we made this article !ĭon’t hesitate to add enhancement suggestions □ Here at we changed our prompt to a more functional one for a : ![]() Blog - of a beautiful (efficient) terminal and prompt on OSX in 7minutes
0 Comments
Leave a Reply. |