Restart iTerm2 for all changes to take effect. Set this font in iTerm2 (iTerm → Preferences → Profiles → Text → Font), in the dropdown select the desired Font. Open the downloaded font and press "Install Font". Source Code Pro + Font Awesome, this one is needed if you want the icons from Font Awesome as shown in the screenshot for Powerlevel10k.If you did not go with Powerlevel10k or you want another font, read on: If you want to trigger the configuration wizard immediately, simply run p10k configure to discover all options, which are plentiful. Powerlevel10k offers a whole lot more and is extremely configurable, best is to check its project page. Once you do so, when you start a new terminal session, the Powerlevel10 configure wizard will be launched to set your prompt, beware, there are many many options! ![]() Then edit your ~/.zshrc and set ZSH_THEME="powerlevel10k/powerlevel10k". So if you prefer the Powerlevel10k look with added info such as exit codes and timestamps on the right, run: git clone $ZSH_CUSTOM/themes/powerlevel10k Why Powerlevel10k? Well, because it's a drop-in replacement for Powerlevel9k, just a lot faster to render your prompt. When the installation is done, edit ~/.zshrc and set ZSH_THEME="agnoster" for the default look. More info here: Install with curl sh -c "$(curl -fsSL )" You can create a different profile other than Default if you wish to do so. Apply them in iTerm through iTerm → preferences → profiles → colors → load presets. The color settings will be imported into iTerm2. Just save it somewhere and open the file(s). Solarized Dark theme (patched version to fix the bright black value).ITerm2 has better color fidelity than the built in Terminal, so your themes will look better. Or, if you do not have homebrew (you should )): Download and install iTerm2 How to install iTerm2 brew install -cask iterm2 If you want to set tab title and/or color automatically when you enter some directory, try Tarrasch/zsh-autoenv in conjunction with this plugin.Īndy Gimblett. I experimented for a while with using the iTerm2 python API to set the session name, which is nicely "sticky", but since the 3.3.9 release the security model made that more inconvenient than seemed worthwhile, so I've reverted to the escape code technique. ![]() This does unfortunately mean that other processes that do that same can then overwrite the title you've chosen, but this is the simplest and most reliable way to make this happen. ![]() Note that to set tab titles using this plugin you do need to enable the Applications in terminal may change the title option on your iTerm2 profile, allowing the title to be set by echos of proprietary escape codes. Most of the color-related work is done by a python script. tcn -list-colors just shows the names this is what tab completion triggers.tcn -show-colors shows the list of available color names, along with a demo of each color.See iterm2-tabs.zsh for more details, and examples.Ĭolors may be set either as RGB triples or as named colors, where the list of color names (from jacaetevha/finna-be-octo-hipster) is hard-coded - but accessible via tab completion. iterm2_tab_color_random_named with alias tcnr.This plugin provides five functions for setting an iTerm2 tab's title/session name, and color: Andy's zsh plugin for setting iTerm2 titles and colors Iterm2-tabs - Set colors and titles of iTerm 2 tabs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |