From 71e75e351867060d8cf00e676b70341022f0fe17 Mon Sep 17 00:00:00 2001 From: bh Date: Wed, 1 Apr 2026 20:28:35 +0800 Subject: python: add python configuration --- python/.pythonrc | 9 +++++++++ zsh/.zshrc | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 python/.pythonrc 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}" diff --git a/zsh/.zshrc b/zsh/.zshrc index 800f14e..a81af9e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -68,6 +68,11 @@ zstyle :compinstall filename '/home/bh/.zshrc' autoload -Uz compinit compinit +# ┌──────────────────────────────────────────────────────────────┐ +# │  Python +# └──────────────────────────────────────────────────────────────┘ +export PYTHONSTARTUP="$HOME/.pythonrc" + # ┌──────────────────────────────────────────────────────────────┐ # │ ✏️ Editor │ # └──────────────────────────────────────────────────────────────┘ -- cgit v1.2.3