Skip to content

Instantly share code, notes, and snippets.

@anki-code
anki-code / p10k-bar.zsh
Created September 23, 2019 20:41 — forked from romkatv/p10k-bar.zsh
p10k-bar.zsh
# 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=(
@anki-code
anki-code / gist:b9cf5fbe3252f4fcc626e95429ff6342
Created August 9, 2022 09:04
Get xonsh xontribs list from pypi and add the info from pypi and Github
from bs4 import BeautifulSoup as bs
packages = []
# Get the list of packages from pypi
for p in range(1,10):
page = $(curl @(f'https://pypi.org/search/?q=xontrib-&page={p}'))
if 'Error code 404' in page:
printx('{GREEN}DONE{RESET}')