Full repo: https://github.com/romkatv/advent-of-code-2019.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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]:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Measure zsh prompt latency with various themes: | |
# | |
# 1. Run the docker command. | |
# 2. Type `ZSH_THEME=XXX exec zsh` where `XXX` is a theme name such as | |
# `agnoster` or `powerlevel10k/powerlevel10k`. | |
# 3. Type `zsh-prompt-benchmark` and press and hold ENTER until benchmark | |
# results appear. It takes about 10 seconds. | |
docker run -e TERM -it --rm archlinux/base bash -uexc ' | |
pacman -Sy --noconfirm zsh git | |
git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh |
- Source: starship/starship#921.
- Timing for
git status
: between 12 and 15 seconds.- Method of timing: likely
time git status
. - Reported time: probably wall time.
- Cold or hot: unknown.
- Method of timing: likely
- Timing for
gitstatus_query
: between 3 and 4 seconds.- Method of timing: unknown.
- Reported time: probably wall time.
- Cold or hot: unknown.
gitstatusd
command-line arguments: unknown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### !!! 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 |
Powerlevel10k config with Tony Lambiris's style
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by Powerlevel10k configuration wizard on 2020-04-12 at 20:28 CEST. | |
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 30399. | |
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, dark, | |
# 24h time, round separators, round heads, round tails, 2 lines, disconnected, no frame, | |
# sparse, many icons, concise, instant_prompt=quiet. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate | |
# your own config based on it. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XTerm Control Sequences | |
Edward Moy | |
University of California, Berkeley | |
Revised by | |
Stephen Gildea | |
X Consortium (1994) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer