Types of .bashrc files
Here you can view and use all types of ".bashrc" files.
GitHub
README
Star
from bs4 import BeautifulSoup bashrcs_list = [] bashrcs = """
{title}
File
Code
[Terminal]
Preview {index}
{bashrc_preview}
""" for index, dict_ in enumerate(data) : soup = BeautifulSoup(dict_[".bashrc-preview"], 'html.parser') last_font_tag = soup.pre.find_all('font')[-1] font_tag = soup.new_tag('font', attrs={'class':'typewriter'}) font_tag.string = 'ls' last_font_tag.insert_after(font_tag) dict_[".bashrc-preview"] = soup.prettify() bashrcs_list.append( bashrcs.format( index=index+1, title=dict_["dir"].split("/")[1] , bashrc_url=dict_[".bashrc-url"], bashrc_code_url=dict_[".bashrc-code-url"], bashrc_preview=dict_[".bashrc-preview"], ) ) manual_div = Element("all-bashrc") manual_div.element.innerHTML = "
".join(bashrcs_list)