diff options
| author | bh <qn+git@epicurus.dev> | 2026-04-01 20:28:35 +0800 |
|---|---|---|
| committer | bh <qn+git@epicurus.dev> | 2026-04-01 20:28:35 +0800 |
| commit | 71e75e351867060d8cf00e676b70341022f0fe17 (patch) | |
| tree | 7b263066ba3a9859bf5f083d27e51612551ee950 | |
| parent | 51db7939e8c6d4f2cf894963b874d649ec4c2ace (diff) | |
python: add python configuration
| -rw-r--r-- | python/.pythonrc | 9 | ||||
| -rw-r--r-- | zsh/.zshrc | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/python/.pythonrc b/python/.pythonrc new file mode 100644 index 0000000..6087e1f --- /dev/null +++ b/python/.pythonrc @@ -0,0 +1,9 @@ +import sys + +# 24-bit ANSI colours +gold = "\001\033[38;2;255;197;0m\002" # #FFC500 +blue = "\001\033[38;2;47;93;134m\002" # #2F5D86 +reset = "\001\033[0m\002" + +sys.ps1 = f"{gold} >> {reset}" +sys.ps2 = f"{blue}... {reset}" @@ -69,6 +69,11 @@ autoload -Uz compinit compinit # ┌──────────────────────────────────────────────────────────────┐ +# │ Python +# └──────────────────────────────────────────────────────────────┘ +export PYTHONSTARTUP="$HOME/.pythonrc" + +# ┌──────────────────────────────────────────────────────────────┐ # │ ✏️ Editor │ # └──────────────────────────────────────────────────────────────┘ export EDITOR="nvim" |
