stylix and bugfixes
This commit is contained in:
parent
1b31f9e29c
commit
86a63e1131
11 changed files with 193 additions and 155 deletions
|
|
@ -17,6 +17,7 @@ if $XONSH_INTERACTIVE:
|
|||
from datetime import datetime
|
||||
import importlib.util
|
||||
t0 = datetime.now()
|
||||
|
||||
## ENV ##
|
||||
$XONSH_COLOR_STYLE = 'native'
|
||||
$PROMPT = '{YELLOW}{env_name}{RESET}{BOLD_GREEN}{user}@{hostname} {cwd}{branch_color}{curr_branch: {}}{RESET} {RED}{last_return_code_if_nonzero:[{BOLD_INTENSE_RED}{}{RED}] }{RESET}{BOLD_BLUE}{prompt_end}{RESET} '
|
||||
|
|
@ -51,6 +52,8 @@ if $XONSH_INTERACTIVE:
|
|||
|
||||
## THICC SHELL
|
||||
if $SHELL_THICCNESS == "HIGH" and not $SHELL_THICKENED == "TRUE":
|
||||
t0_0 = datetime.now()
|
||||
# Standard Library Imports
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
|
|
@ -60,15 +63,25 @@ if $XONSH_INTERACTIVE:
|
|||
import pathlib
|
||||
import re
|
||||
import json
|
||||
import scapy.all
|
||||
import yaml
|
||||
import requests
|
||||
import threading
|
||||
import multiprocessing
|
||||
# Third Party Imports
|
||||
if importlib.util.find_spec("scapy") is not None:
|
||||
import scapy.all
|
||||
if importlib.util.find_spec("yaml") is not None:
|
||||
import yaml
|
||||
if importlib.util.find_spec("requests") is not None:
|
||||
import requests
|
||||
$SHELL_THICKENED = "TRUE"
|
||||
t0_1 = datetime.now()
|
||||
else:
|
||||
xonsh_rc_path = $XONSHRC[0]
|
||||
aliases["thicken-shell"] = f"export SHELL_THICCNESS=HIGH && source {xonsh_rc_path}"
|
||||
|
||||
## THEO GREETING ##
|
||||
hour = t0.hour
|
||||
theo | kittycatsay
|
||||
dt = round((datetime.now() - t0).microseconds/1000000, 2)
|
||||
print("Load time:", dt, "seconds")
|
||||
if $SHELL_THICKENED == "TRUE":
|
||||
print_color("{BOLD_GREEN}THICC SHELL LOADED!{RESET}")
|
||||
print_color("{BOLD_GREEN}SHELL THICKENED IN " + str(round((t0_1 - t0_0).microseconds/1000000, 2)) + "{RESET}")
|
||||
print("Load time:", dt, "seconds")
|
||||
Loading…
Add table
Add a link
Reference in a new issue