Powerlevel10k can generate the same prompt as Pure.
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
#!/bin/bash | |
# | |
# This script installs patched Meslo Powerline font family on Windows. | |
# The fonts are installed for the current user only. The script must be | |
# run from WSL. | |
# | |
# bash -c "$(curl -fsSL https://gist.githubusercontent.com/romkatv/aa7a70fe656d8b655e3c324eb10f6a8b/raw/install_meslo_wsl.sh)" | |
# | |
# If you just want the font files, they are in | |
# https://github.com/romkatv/dotfiles-public/tree/master/.local/share/fonts/NerdFonts. |
#!/usr/bin/zsh | |
p=$'${${_P9K_BG::=NONE}+}${${_P9K_I::=0}+}\M-b\M-\C-U\M--\M-b\M-\C-T\M-\C-@%f%b%k${${_P9K_E::=1}+}${${_P9K_C::=${(Q)${:-%D\\{%H:%M:%S\\}}}}+}${_P9K_N::=}${${_P9K_E:-${_P9K_N:=9}}+}${${${${_P9K_BG:-0}:#NONE}:-${_P9K_N:=1}}+}${${${$((_P9K_I>0&&_P9K_I>=1)):#1}:-${_P9K_N:=2}}+}${${${${:-0$_P9K_BG}:#0102}:-${_P9K_N:=3}}+}${${_P9K_N:=4}+}${${_P9K_V[1]::=%K{102\\} %F{000\\}\M-o\M-\C-@\M-\C-W%F{000\\}}+}${${_P9K_V[2]::=%K{102\\}%F{000\\}\M-o\M-\C-@\M-\C-W%F{000\\}}+}${${_P9K_V[3]::=%K{102\\}%F{000\\}\M-n\M-\C-B\M-1 %F{000\\}\M-o\M-\C-@\M-\C-W%F{000\\}}+}${${_P9K_V[4]::=%K{102\\}%F{$_P9K_BG\\}\M-n\M-\C-B\M-0 %F{000\\}\M-o\M-\C-@\M-\C-W%F{000\\}}+}${_P9K_V[$_P9K_N]}${_P9K_E:+${_P9K_C:+ }${_P9K_C} ${${_P9K_I::=1}+}${${_P9K_BG::=102}+}}${${_P9K_E::=${${(%)${:-%#}}:#%}}+}${${_P9K_C::=${(Q)${:-\'\'}}}+}${_P9K_N::=}${${_P9K_E:-${_P9K_N:=9}}+}${${${${_P9K_BG:-0}:#NONE}:-${_P9K_N:=1}}+}${${${$((_P9K_I>0&&_P9K_I>=2)):#1}:-${_P9K_N:=2}}+}${${${${:-0$_P9K_BG}:#0000}:-${_P9K_N:=3}}+}${${_P9K_N:=4}+}${${_P9K_V[1]:: |
Powerlevel10k can generate the same prompt as Pure.
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
If you want your prompt to look like Tony Lambiris's but without the lag and bugs of Powerlevel9k, this config is for you.
Ported from tonylambiris/dotfiles/dot.zshrc.
# Example of two-line ZSH prompt with four components. | |
# | |
# top-left top-right | |
# bottom-left bottom-right | |
# | |
# Components can be customized by editing set-prompt function. | |
# | |
# Installation: | |
# | |
# (cd && curl -fsSLO https://gist.githubusercontent.com/romkatv/2a107ef9314f0d5f76563725b42f7cab/raw/two-line-prompt.zsh) |
mkdir -p ~/.termux | |
curl -fsSL -o ~/.termux/font.ttf 'https://github.com/romkatv/dotfiles-public/raw/master/.local/share/fonts/NerdFonts/MesloLGS%20NF%20Regular.ttf' | |
termux-reload-settings |
#### !!! THIS GIST IS OBSOLETE !!! #### | |
# | |
# There is now built-in support for transient kubecontext | |
# in Powerlevel10k. | |
# | |
# See: https://github.com/romkatv/powerlevel10k/#show-on-command | |
# | |
#### !!! THIS GIST IS OBSOLETE !!! #### | |
# Run this function from ~/.zshrc to enable transient kubernetes and/or azure |
# Config for Powerlevel10k ZSH theme (https://github.com/romkatv/powerlevel10k/) that emulates | |
# the appearance of Bar ZSH theme (https://github.com/anki-code/zsh-bar-theme). | |
() { | |
emulate -L zsh | |
setopt no_unset | |
# Unset all configuration options. | |
unset -m 'POWERLEVEL9K_*' | |
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( |
# Make zsh start INSTANTLY with this one weird trick. | |
# | |
# https://asciinema.org/a/274255 | |
# | |
# HOW TO USE | |
# | |
# 1. Download this script. | |
# | |
# curl -fsSL -o ~/instant-zsh.zsh https://gist.github.com/romkatv/8b318a610dc302bdbe1487bb1847ad99/raw | |
# |